Merge pull request #4 from uhoreg/master

use the right method for setting room topic
This commit is contained in:
David A Roberts 2017-02-08 21:04:20 +10:00 committed by GitHub
commit d1567a0304

View File

@ -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) =>