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FRRL3LKIN7LXSFKRT2WG3I2GPFI4SQJ3CAC
ZIKDRKW5HGJUPHYVVXVEKLFV4YLNU537ALHEWBIVABOVJECRMZXAC
println('body read $read_count bytes. buflen $body_bytes.len bytes')
body := body_bytes.bytestr()
body_replace := body.replace(r'$', '_')
if payload := json2.raw_decode(body_replace) {
println('decoded: $payload')
events := payload.as_map()['events'].arr()
println('events $events.len')
for evt in events {
self.out <- Command{
data: evt.as_map()
if read_count > 0 {
body := body_bytes.bytestr()
body_replace := body.replace(r'$', '_')
if payload := json2.raw_decode(body_replace) {
println('decoded: $payload')
events := payload.as_map()['events'].arr()
println('events $events.len')
for evt in events {
self.out <- Command{
data: evt.as_map()
}
"m.room.member" {
c:= m['content'].as_map()
room := m['room_id'].str()
println("user ${m['state_key']} room $room is ${c['membership']}")
self.matrix.join(room)
'm.room.member' {
c := m['content'].as_map()
room := m['room_id'].str()
println('user ${m['state_key']} room $room is ${c['membership']}')
self.matrix.join(room)