diff --git a/src/context/intermediate/popovers/UserProfile.tsx b/src/context/intermediate/popovers/UserProfile.tsx
index 385829a7..afcc8345 100644
--- a/src/context/intermediate/popovers/UserProfile.tsx
+++ b/src/context/intermediate/popovers/UserProfile.tsx
@@ -116,12 +116,11 @@ export function UserProfile({ user_id, onClose, dummy, dummyProfile }: Props) {
const badges = (user.badges ?? 0) | (decodeTime(user._id) < 1623751765790 ? Badges.EarlyAdopter : 0);
return (
-
+ dontModal={dummy}>
{};
}
@@ -85,7 +84,7 @@ export function useDMs(context?: HookContext) {
function mutation(target: string) {
let channel = ctx.client.channels.get(target);
if (channel) {
- if ((channel.channel_type === 'DirectMessage' && channel.active) || channel.channel_type === 'Group') {
+ if (channel.channel_type === 'DirectMessage' || channel.channel_type === 'Group') {
ctx.forceUpdate();
}
}
@@ -99,7 +98,7 @@ export function useDMs(context?: HookContext) {
return map
.toArray()
- .filter(x => (x.channel_type === 'DirectMessage' && x.active) || x.channel_type === 'Group' || x.channel_type === 'SavedMessages') as (Channels.GroupChannel | Channels.DirectMessageChannel | Channels.SavedMessagesChannel)[];
+ .filter(x => x.channel_type === 'DirectMessage' || x.channel_type === 'Group' || x.channel_type === 'SavedMessages') as (Channels.GroupChannel | Channels.DirectMessageChannel | Channels.SavedMessagesChannel)[];
}
export function useUserPermission(id: string, context?: HookContext) {
diff --git a/src/lib/stopPropagation.ts b/src/lib/stopPropagation.ts
index 98c9fa60..df4d9533 100644
--- a/src/lib/stopPropagation.ts
+++ b/src/lib/stopPropagation.ts
@@ -1,4 +1,5 @@
export const stopPropagation = (ev: JSX.TargetedMouseEvent, _consume?: any) => {
ev.preventDefault();
ev.stopPropagation();
+ return true;
};