CNAO2PSWRMDTH3DCK4OI6RJCG7AI4FQDYTCXBEYSDCY6JKTAOT2QC
GOQKAC5U66BDKPV2O7XALAHBW3UWJOM6SGOV3T4455NN52MJUSPAC
AETEUT6ER7MJXNYTBH5RHUT5URSRWNBJPXU2CA4URLSNAZYMWPIAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
B5EQK6YSRS2YL3C4MXWCOUDYDEOB46LXAZNRCSXC7STIME7W6JQAC
CZ5VLFRO52AIT4MKVWP7GFRDR2MR6OKEUAXIBCWS7CWNLIUOH74QC
HTHDQRSJV4WVGIM53GR7JGIRZACMIZDI5UMJ522QFI3ZCX5K56GQC
pub fn (self Rooms) pointers() []&Room {
return self.rooms.map(&it)
}
// self.matrix.joined_rooms_sync()
j_rooms := self.matrix.joined_rooms() or { panic('joined_rooms fail') }
println('sync_rooms: matrix joined_rooms $j_rooms')
needs_to_join := matrix.rooms_subtract(db_rooms, j_rooms)
self.matrix.joined_rooms_sync()
println('sync_rooms: matrix joined_rooms $self.matrix.joined_rooms.rooms')
needs_to_join := matrix.rooms_subtract(db_rooms, self.matrix.joined_rooms.pointers())