removed,
data
) => {
+ if (mx.getSyncState() !== 'SYNCING') return;
+ if (document.hasFocus() && (selectedRoomId === room?.roomId || notificationSelected)) return;
if (
- mx.getSyncState() !== 'SYNCING' ||
- selectedRoomId === room?.roomId ||
- notificationSelected ||
!room ||
!data.liveEvent ||
room.isSpaceRoom() ||
!isNotificationEvent(mEvent) ||
getNotificationType(mx, room.roomId) === NotificationType.Mute
- )
+ ) {
return;
+ }
const sender = mEvent.getSender();
const eventId = mEvent.getId();
export function UnverifiedTab() {
const mx = useMatrixClient();
const deviceList = useDeviceList();
- console.log(deviceList);
const unverified = deviceList?.filter(
(device) => isCrossVerified(mx, device.device_id) === false
);
- console.log(unverified);
if (!unverified?.length) return null;