NNQXLXID2SZLQZ7DEHN7RPXKFZQWS5O3TMIHGK75YGNHVQGSE2SQC
K4DRWAY72CGDTYJ52KGZFEZDO5HHXOYRIYR5L2SHXXUF3BPNOWTAC
IF2DHIDP45VLM5YEAHCHURS6EV4F2CHGRPCCAEFGF5F4JOZBE6RQC
HA7HWWCWLZNJVHU7BI4IL5HTT26V44HJKDRZHXMT5AN6B7NH7N6AC
GOQKAC5U66BDKPV2O7XALAHBW3UWJOM6SGOV3T4455NN52MJUSPAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
B5EQK6YSRS2YL3C4MXWCOUDYDEOB46LXAZNRCSXC7STIME7W6JQAC
ZC73RDIWLPNSCHDT35Z3TW5V6YANEVPPTYWLATPGCTYY3DCR2SEAC
SUH4BQLPGHDR2W2VCWZOXG2CU3RRFBMWAH4EQIFKO4SB4YRNJRRQC
pub fn (mut self Actor) leave(room_id string) ?(map[string]json2.Any, int) {
pub fn (mut self Actor) leave(room_id string) {
params, code := self.room_leave(room_id) or { return }
match code {
200 {
self.joined_rooms.delete(room_id)
}
404 {
if params['errcode'].str() == 'M_UNKNOWN' {
self.joined_rooms.delete(room_id)
}
}
else {}
}
}
pub fn (mut self Actor) room_leave(room_id string) ?(map[string]json2.Any, int) {