Speed up profile wave action (#1379)

This commit is contained in:
klopez4212
2026-06-30 16:27:12 +01:00
committed by GitHub
parent 8d8fc6331f
commit 2fc5dd35b1
2 changed files with 3 additions and 3 deletions

View File

@@ -150,8 +150,8 @@ export function useOpenDmMutation() {
]),
);
},
onSettled: async () => {
await queryClient.invalidateQueries({ queryKey: channelsQueryKey });
onSettled: () => {
void queryClient.invalidateQueries({ queryKey: channelsQueryKey });
},
});
}

View File

@@ -596,7 +596,7 @@ export function UserProfilePopover({
<div className="flex gap-2">
<Button
aria-label="Wave"
className="buzz-wave-hover-trigger shrink-0 px-3"
className="buzz-wave-hover-trigger shrink-0 px-3 transition-transform duration-100 ease-out motion-reduce:transition-none motion-safe:active:scale-[0.97]"
data-testid={`user-profile-popover-wave-${pubkey}`}
disabled={
pendingAction !== null || openDmMutation.isPending