We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8d0b0 commit 9b94899Copy full SHA for 9b94899
ts/state/selectors/messages.ts
@@ -73,9 +73,9 @@ export const useAuthorAvatarPath = (messageId: string): string | null => {
73
return senderProps.avatarPath || null;
74
};
75
76
-export const useMessageIsDeleted = (messageId?: string): boolean => {
+export const useMessageIsDeleted = (messageId?: string) => {
77
const props = useMessagePropsByMessageId(messageId);
78
- return !!props?.propsForMessage.isDeleted;
+ return props?.propsForMessage.isDeleted;
79
80
81
export const useFirstMessageOfSeries = (messageId: string | undefined): boolean => {
0 commit comments