Add option to kick user in profile viewer

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-01-12 18:26:52 +05:30
parent e38ddebfb6
commit 248fc15716
3 changed files with 79 additions and 15 deletions

View file

@ -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;
}