use the right method for setting room topic
This commit is contained in:
parent
2878880fd5
commit
1e1477e5fa
@ -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) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user