Apply prettier formatting
This commit is contained in:
@@ -24,7 +24,10 @@ import { doesRoomHaveUnreadMessages } from "../Unread";
|
||||
import { EffectiveMembership, getEffectiveMembership } from "../utils/membership";
|
||||
import { useEventEmitter } from "./useEventEmitter";
|
||||
|
||||
export const useUnreadNotifications = (room: Room, threadId?: string): {
|
||||
export const useUnreadNotifications = (
|
||||
room: Room,
|
||||
threadId?: string,
|
||||
): {
|
||||
symbol: string | null;
|
||||
count: number;
|
||||
color: NotificationColor;
|
||||
@@ -33,7 +36,9 @@ export const useUnreadNotifications = (room: Room, threadId?: string): {
|
||||
const [count, setCount] = useState<number>(0);
|
||||
const [color, setColor] = useState<NotificationColor>(0);
|
||||
|
||||
useEventEmitter(room, RoomEvent.UnreadNotifications,
|
||||
useEventEmitter(
|
||||
room,
|
||||
RoomEvent.UnreadNotifications,
|
||||
(unreadNotifications: NotificationCount, evtThreadId?: string) => {
|
||||
// Discarding all events not related to the thread if one has been setup
|
||||
if (threadId && threadId !== evtThreadId) return;
|
||||
|
||||
Reference in New Issue
Block a user