mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 18:50:29 +03:00
Add option to kick user in profile viewer
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
e38ddebfb6
commit
248fc15716
3 changed files with 79 additions and 15 deletions
|
|
@ -192,10 +192,10 @@ async function invite(roomId, userId) {
|
|||
return result;
|
||||
}
|
||||
|
||||
async function kick(roomId, userId) {
|
||||
async function kick(roomId, userId, reason) {
|
||||
const mx = initMatrix.matrixClient;
|
||||
|
||||
const result = await mx.kick(roomId, userId);
|
||||
const result = await mx.kick(roomId, userId, reason);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue