use the right method for setting room topic

This commit is contained in:
Hubert Chathi 2016-10-05 18:43:07 -04:00
parent 2878880fd5
commit 1e1477e5fa

View File

@ -36,9 +36,9 @@ class Matrix extends Adapter
topic: (envelope, strings...) -> topic: (envelope, strings...) ->
for str in strings for str in strings
@client.sendEvent envelope.room, "m.room.topic", { @client.sendStateEvent envelope.room, "m.room.topic", {
topic: str topic: str
} }, ""
sendImage: (envelope, url) -> sendImage: (envelope, url) ->
@client.uploadContent(stream: request url, name: url).done (murl) => @client.uploadContent(stream: request url, name: url).done (murl) =>