don't send text as notice
This commit is contained in:
parent
24fe201b43
commit
bf498e251a
@ -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?
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user