7QNYRGHQYWV5UVPRJSZ5FZYOLEPV647PGURU5ETSRYBAFSZAKXHAC
if room.user_ids.len == 0 {
room.user_ids = self.matrix.room_joined_members(room.id) or {continue}
println("updated $room to user_ids $room.user_ids")
}
if room.user_ids.len == 0 {
room.user_ids = self.matrix.room_joined_members(room.id) or { continue }
if room.name is string {
if room.name.starts_with('@') {
mut present := false
for user_id in room.user_ids {
if user_id == room.name {
present = true
}
}
if present == false {
println('warning! $room does not include ${room.name}. sending invite.')
self.matrix.room_invite(room, room.name) or {}
}
}
}
}