From e0acdabe537da5e29e256682c5c3e976f0403e6d Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Tue, 27 Sep 2016 21:32:08 -0400 Subject: [PATCH] send m.notice instead of m.text --- src/matrix.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/matrix.coffee b/src/matrix.coffee index 964b8df..7157e5b 100644 --- a/src/matrix.coffee +++ b/src/matrix.coffee @@ -18,7 +18,10 @@ class Matrix extends Adapter if /^(f|ht)tps?:\/\//i.test(str) @sendImage envelope, str else - @client.sendTextMessage envelope.room, str + @client.sendMessage envelope.room, { + msgtype: "m.notice", + body: str + } reply: (envelope, strings...) -> for str in strings