mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-31 03:11:02 +02:00
/topic
This commit is contained in:
parent
214ef4b4ce
commit
ddb426095e
@ -42,6 +42,16 @@ var commands = {
|
|||||||
return reject("Usage: /nick <display_name>");
|
return reject("Usage: /nick <display_name>");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Change the room topic
|
||||||
|
topic: function(room_id, args) {
|
||||||
|
if (args) {
|
||||||
|
return success(
|
||||||
|
MatrixClientPeg.get().setRoomTopic(room_id, args)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return reject("Usage: /topic <topic>");
|
||||||
|
},
|
||||||
|
|
||||||
// Invite a user
|
// Invite a user
|
||||||
invite: function(room_id, args) {
|
invite: function(room_id, args) {
|
||||||
if (args) {
|
if (args) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user