sent read receipts for events

This commit is contained in:
Hubert Chathi 2016-09-27 21:44:27 -04:00
parent f0a1f885ff
commit 547e20df88

View File

@ -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()