From 547e20df88248c24c51f6f7976b870719c749812 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Tue, 27 Sep 2016 21:44:27 -0400 Subject: [PATCH] sent read receipts for events --- src/matrix.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matrix.coffee b/src/matrix.coffee index 5a764be..3fe74d7 100644 --- a/src/matrix.coffee +++ b/src/matrix.coffee @@ -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()