From bf498e251a1b4e08a956db61790a5a23c87c8944 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 20 Jun 2018 17:39:18 +0200 Subject: [PATCH] don't send text as notice --- src/matrix.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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?