Skip to content

fix(notifications): fail open encrypted unified push - #1452

Merged
7w1 merged 3 commits into
devfrom
fix/encrypted-unified-push-notifications
Jul 28, 2026
Merged

fix(notifications): fail open encrypted unified push#1452
7w1 merged 3 commits into
devfrom
fix/encrypted-unified-push-notifications

Conversation

@eleboucher

@eleboucher eleboucher commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

fix issue with unreliable notifications for desktop and android

Fixes #1448

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

@7w1
7w1 enabled auto-merge July 28, 2026 22:40
@7w1
7w1 added this pull request to the merge queue Jul 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

Status Preview URL Commit Alias Updated (UTC)
✅ Deployment successful! https://pr-1452-sable.raspy-dream-bb1d.workers.dev 8dd2049 pr-1452 Tue, 28 Jul 2026 22:41:56 GMT

Merged via the queue into dev with commit a52bbee Jul 28, 2026
13 checks passed
Comment on lines +671 to +684
const key = `${userId}\u0000${roomId}`;
let enrichmentCache: RoomNotifCache | undefined;
let enrichmentMessage: NotifMessage | undefined;
const posted = await enqueueRoomOperation(key, async () => {
const cache = getOrCreateRoomCache(userId, roomId, roomName);
if (eventId && (cache.pendingEventIds.has(eventId) || cache.seenEventIds.has(eventId))) {
return false;
}
if (eventId) cache.pendingEventIds.add(eventId);
const previousMessages = cache.messages.slice();
cache.messages.push(message);
if (cache.messages.length > MAX_MESSAGES) {
cache.messages = cache.messages.slice(-MAX_MESSAGES);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like handleRichPushPayload and handleMinimalPushPayload are mostly the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tauri] [android] If Show Encrypted Message Content is enabled and the app is in the background, e2ee rooms won't deliver any notifications

3 participants