From 1e1477e5fab5c4db35319fa3acba7eec86d3b3fe Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Wed, 5 Oct 2016 18:43:07 -0400 Subject: [PATCH] use the right method for setting room topic --- src/matrix.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix.coffee b/src/matrix.coffee index 8060c43..278a90e 100644 --- a/src/matrix.coffee +++ b/src/matrix.coffee @@ -36,9 +36,9 @@ class Matrix extends Adapter topic: (envelope, strings...) -> for str in strings - @client.sendEvent envelope.room, "m.room.topic", { + @client.sendStateEvent envelope.room, "m.room.topic", { topic: str - } + }, "" sendImage: (envelope, url) -> @client.uploadContent(stream: request url, name: url).done (murl) =>