diff --git a/src/matrix.coffee b/src/matrix.coffee index ae97e74..3825b5e 100644 --- a/src/matrix.coffee +++ b/src/matrix.coffee @@ -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?