Merged
Conversation
Unread badge persists after hard refresh: - Track markedReadAt[jid] = lastMsgTimestamp when user reads a chat - Persist markedReadAt to localStorage so it survives page reloads - chatFetchConversations zeroes unreadCount for any jid where no newer message has arrived since it was marked read (normalised to ms for mixed ISO/Unix timestamp safety) - Badge correctly reappears when a genuinely new message arrives Group names showing individual person names instead of group subject: - Root cause: findChats pushName = last sender's name, not group subject - Fix fallback order: verifiedName → c.subject → c.name (pushName excluded) - Persist _verifiedGroupNames to localStorage so correct names load instantly on hard refresh without waiting for async API call - Remove one-time _groupSubjectsFetched gate; now retries only unverified groups each load so transient 404s are recovered on next visit - All 14 groups now resolve to correct subject names immediately Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add WhatsApp-style delete modal with "Delete for everyone" / "Delete for me" / "Cancel" - "Delete for everyone" disabled when any selected message is not fromMe - "Delete for me" always removes locally regardless of API result - Delete available from context menu (single msg) and select-mode toolbar (multi-select) - Fix chatApiCall to send body on DELETE requests (was silently dropped) - Fix chatState missing allFetchedMessages initialisation (crash before first convo) - Fix modal not closing on conversation switch or close (wrong JID bug) - Fix Escape key not dismissing delete modal - Fix select toolbar delete button uses stable id instead of fragile attribute selector - Fix RTL: add dir=auto to contact/poll/default/quoted message text elements - Fix XSS: onerror avatar uses sibling-element pattern instead of innerHTML - Fix XSS: quotedMsg.id sanitised before embedding in onclick - Fix XSS: image lightbox uses data-src attribute instead of inline URL - Fix crash: location case guards against null m.text + uses encodeURIComponent - Fix: group name/subject/desc escaped with chatEsc() + dir=auto added - Fix: FileReader base64 split guarded against missing comma - Fix chatCopySelected / chatForwardSelected use Set.has() instead of Array.includes() - Fix chatCloseConversation resets select mode state Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.