ignore incoming m.notice messages as per spec
This commit is contained in:
parent
93dcce7fe4
commit
f0a1f885ff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hubot-matrix",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "Matrix adapter for hubot",
|
||||
"main": "src/matrix.coffee",
|
||||
"scripts": {
|
||||
|
@ -71,7 +71,7 @@ class Matrix extends Adapter
|
||||
@robot.logger.info "Synced #{@client.getRooms().length} rooms"
|
||||
@emit 'connected'
|
||||
@client.on 'Room.timeline', (event, room, toStartOfTimeline) =>
|
||||
if event.getType() == 'm.room.message' and toStartOfTimeline == false
|
||||
if event.getType() == 'm.room.message' and event.getContent().msgtype != "m.notice" and toStartOfTimeline == false
|
||||
message = event.getContent().body
|
||||
name = event.getSender()
|
||||
user = @robot.brain.userForId name
|
||||
|
Loading…
Reference in New Issue
Block a user