added support for sending reaction

This commit is contained in:
unknown 2021-08-15 13:59:09 +05:30
parent ebac0db0df
commit fa85e61d6f
6 changed files with 376 additions and 294 deletions

View file

@ -189,19 +189,7 @@ async function invite(roomId, userId) {
}
}
async function redact(roomId, eventId, reason) {
const mx = initMatrix.matrixClient;
try {
await mx.redactEvent(roomId, eventId, undefined, typeof reason === 'undefined' ? undefined : { reason });
return true;
} catch (e) {
throw new Error(e);
}
}
export {
join, leave,
create, invite,
redact,
};