mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
Fix crash on load and room creation (#418)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
005434f79b
commit
e8d6ccec9a
2 changed files with 12 additions and 2 deletions
|
|
@ -35,7 +35,12 @@ const items = [{
|
|||
function setRoomNotifType(roomId, newType) {
|
||||
const mx = initMatrix.matrixClient;
|
||||
const { notifications } = initMatrix;
|
||||
const roomPushRule = mx.getRoomPushRule('global', roomId);
|
||||
let roomPushRule;
|
||||
try {
|
||||
roomPushRule = mx.getRoomPushRule('global', roomId);
|
||||
} catch {
|
||||
roomPushRule = undefined;
|
||||
}
|
||||
const promises = [];
|
||||
|
||||
if (newType === cons.notifs.MUTE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue