sent read receipts for events
This commit is contained in:
parent
f0a1f885ff
commit
547e20df88
@ -71,6 +71,7 @@ class Matrix extends Adapter
|
||||
@robot.logger.info "Synced #{@client.getRooms().length} rooms"
|
||||
@emit 'connected'
|
||||
@client.on 'Room.timeline', (event, room, toStartOfTimeline) =>
|
||||
@client.sendReadReceipt(event)
|
||||
if event.getType() == 'm.room.message' and event.getContent().msgtype != "m.notice" and toStartOfTimeline == false
|
||||
message = event.getContent().body
|
||||
name = event.getSender()
|
||||
|
Loading…
Reference in New Issue
Block a user