Skip to content

Commit 9b94899

Browse files
committed
fix: useMessageIsDeleted is not returning a bool anymore
1 parent fe8d0b0 commit 9b94899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ts/state/selectors/messages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ export const useAuthorAvatarPath = (messageId: string): string | null => {
7373
return senderProps.avatarPath || null;
7474
};
7575

76-
export const useMessageIsDeleted = (messageId?: string): boolean => {
76+
export const useMessageIsDeleted = (messageId?: string) => {
7777
const props = useMessagePropsByMessageId(messageId);
78-
return !!props?.propsForMessage.isDeleted;
78+
return props?.propsForMessage.isDeleted;
7979
};
8080

8181
export const useFirstMessageOfSeries = (messageId: string | undefined): boolean => {

0 commit comments

Comments
 (0)