set presence

This commit is contained in:
David A Roberts 2017-02-13 09:20:41 +00:00
parent 5f7fd7a957
commit 64e4f890e5

View File

@ -82,6 +82,7 @@ class Matrix extends Adapter
@emit 'connected'
@client.on 'Room.timeline', (event, room, toStartOfTimeline) =>
if event.getType() == 'm.room.message' and toStartOfTimeline == false
@client.setPresence "online"
message = event.getContent()
name = event.getSender()
user = @robot.brain.userForId name