don't send text as notice

This commit is contained in:
Michele Guerini Rocco 2018-06-20 17:39:18 +02:00
parent 24fe201b43
commit bf498e251a
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A

View File

@ -81,10 +81,10 @@ class Matrix extends Adapter
sendText: (envelope, text, callback) ->
@client.sendNotice(envelope.room.id, text).catch (err) =>
@client.sendTextMessage(envelope.room.id, text).catch (err) =>
if err.name == 'UnknownDeviceError'
@handleUnknownDevices err
@client.sendNotice(envelope.room.id, text)
@client.sendTextMessage(envelope.room.id, text)
callback() if callback?