Saved messages (self-chat) shows another 1:1 chat's messages #71
Open
opened 2026-12-02 01:07:44 +00:00 by ann
·
1 comment
No Branch/Tag specified
develop
feat/omemo-pq-tcl
feat/omemo-pq
integ/1.3
main
test/calls-csi-matrix
fix/muji-hold-active
fix/muxvoice-unwatch-in-call
fix/sas-request-cancel
fix/muxvoice-late-keys
fix/correction-keeps-reply
fix/drop-storage-0
fix/notify-numeric-body
fix/selfchat-leak
fx13/crypto
fx13/data
rc11/rtc-multisfu-finish
rc11/stale-refusal
rc11/http-resume
rc11/known-reds
rc11/store-bugs
rc11/api-tails
rc9/drop-migrations
rc9/ejabberd-master
rc9/sync-merge
rc9/voice-chat-prekey
rc9/voice-chat-first
rc9/ice-restart-both
feat/megolm-0-c2b
feat/megolm-0-d
feat/megolm-0-c
feat/megolm-0-c2
feat/megolm-0-b
rc9/muc-selfping2
rc9/mux
rc9/muc-selfping
feat/megolm-0-rig
feat/megolm-0
rc9/muji-clear3
rc9/muji-clear2
rc9/muji-clear
feat/history-sync
rc9/muji
lt13/fix-destroyed-room
feat/mtproto-e2e-1
lt13/sync
fix/calls-stats-sm-count
lt13/park
fix/muc-invite-strangers
feat/megolm-0-voice
fix/call-ice-restart
fix/avatar-visible-fetch
fix/webrtc-el9-glibc
fix/catchup-lost-message
fix/omemo-unlisted-refetch
feat/call-stats
fix/call-instant-accept
fix/call-busy-reason
fix/om-io3
feat/om-mux-omemo
fix/is-e-voice
fix/is-b-guest-names
fix/is-d-mux
fix/fr2v-e2ee-pin
chore/fr2-api-freeze
feat/mux-megolm
chore/fr-comments
fix/fr-directory-both-ns
refactor/fr-pep-blob
fix/fr-style-image-types
fix/fr-profilestyle-publish
fix/fr-nick-precis
fix/fr-single-mux-push
chore/fr-dead
refactor/fr-small-helpers
fix/fr-ox-keylist
fix/fr-e2ee-fail-closed
fix/fr-lows
refactor/fr-error-text
fix/fr-lk-resume
fix/fr-rtc-bounds
fix/fr-voice-keys
fix/fr-mentions
refactor/fr-pep-status
fix/fr-relay-sender
fix/fr-mls-daily
fix/fr-mls-roster
test/fr-repro
fix/use-workspaces-default
feat/mls-channel-folders
fix/interop-39-clock-skew
fix/interop-52-held-pm
fix/wasm-ctx-live
wip/fxd-wasm-ctx-live
fix/s2s-mux-invite
feat/voice-e2e-proof
fix/mls-channel-row
feat/tone-audio
feat/call-e2ee
feat/live-voice
fix/upload-privacy-03
fix/upload-privacy
fix/muc-pm-2
fix/mls-interop-39
fix/mls-correction-label
fix/muc-pm-role
fix/mls-file-encryption
fix/mls-room-ux
fix/mls-prewelcome
fix/mux-membership-notices
fix/mls-hello-add
feat/mux-default-subscriptions
fix/caps-presence-on-approval
fix/room-members-names
maint/1.2
fix/mls0-hellos
feat/whiteboard
feat/mux-policy-web
feat/mux-guest-host-3
feat/mux-guest-host-2
feat/mux-guest-host
fix/calls-153-156
feat/workspaces-2
feat/mux-mls-2
feat/omemo2-albums
fix/rng-tests
feat/mux-mls
adopt/pr-52
feat/mls-service
feat/anonymous
feat/workspaces
feat/web-livekit
feat/muc2-mls
feat/forward-files
spike/mls-ds
feat/turn-fallback
feat/muc2-voice-watch
feat/muc2-voice-client-2
fix/issue-50
feat/mucservice-5
feat/muc2-client
feat/muc2-client-2
feat/ns-docs
feat/mucservice-4
feat/mucservice-3
feat/ns-another-im
fix/clock-skew
feat/ox-companion
fix/fable-3
feat/chatmail-keyless
feat/deltachat
feat/maccatalyst-slice
fix/C34-destroyed-room-autojoin
fix/C3-mention-offsets-after-strip
fix/matrix-interop-12
fix/mtproto-creator-abort
feat/one-status
feat/matrix-calls
fix/omemo-pending-trust
fix/destroy-wait-review
feat/groupcall-state
feat/socks5-proxy
feat/tags
fix/win-no-stderr
experimental/catalyst
feat/stream-core
feat/shared-modules
feat/thumbnail-store
feat/groupcalls-v2
feat/stickers
fix/aesgcm-log-redact
archive/pre-alpha3
chore/drop-sip
feat/push-mute-lists
fix/omemo-bundle-race
docs/readmes
chore/drop-qt-host
otr-v3-secret-chats
api-freeze
omemo2-double-envelope
v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alpha10
v1.0.0-alpha9
v1.0.0-alpha8
v1.0.0-alpha7
v1.0.0-alpha6
v1.0.0-alpha5
v1.0.0-alpha3
v1.0.0-alpha2
v1.0.0-alpha1
v0.9.9-alpha6
v0.9.9-alpha5
v0.9.9-alpha4
v0.9.9-alpha3
v0.9.9-alpha2
v0.9.9-alpha1
Labels
No labels
bug
calls
critical
feature request
gateway
media
messages
muc
needsinfo
omemo
presence
secret-chats
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
another-im/libtacky#71
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported by og9jcr2gy in discuss@conference.another.im (2026-12-02, Android, app 0.9.0-rc6 / libtacky 1.3.0-rc8; also seen on many earlier versions). Owner asked to investigate and reproduce.
Symptom: the Saved messages chat (the self-chat) periodically shows, besides the user's real saved notes, messages of an ordinary 1:1 chat with someone else — both the peer's incoming messages (with the peer's avatar) and the user's own replies. Screenshots: the Saved chat and the 1:1 chat show the same conversation. Differences seen in the Saved copy: own messages have a single tick (no read eye / no double tick), the call rows ("answered on another device", "missed call") are absent, and some timestamps differ by several minutes (01:22 in Saved vs 01:28 in the 1:1 chat; 01:30 vs 01:38).
Hypotheses to check:
with=<own bare JID>; on ejabberd (and maybe Prosody) every message in the archive matches that filter (each is to or from the own bare JID), so other chats' messages get stored into the self-chat.toorfromresolves to the own bare JID (e.g. a missing/oddto, a carbon of a message to another own resource) into the self-chat.Ask: reproduce on the integration rig (ejabberd + Prosody): two accounts chat; the user's second device catches up / scrolls Saved messages; check what lands in the self-chat. Add a regression test; fix in libtacky if confirmed.
Filed by GLaDOS for контрадмиралъ кончак in discuss@conference.another.im, 2026-12-02.
Investigation (GLaDOS, 2026-12-02), branch
fix/selfchat-leak(not merged):history,goto,search,fetch→ParseResultNodein message.tcl), it files every returned message under that chat without checking it is between us and that chat. Rooms and contacts' archives already have such a check. So any Saved-messages page (with=<own bare JID>) that brings back other messages files them into Saved — matching every detail of the report (peer avatar, single ticks, archive timestamps, no call rows).with=<own JID>correctly on the rig; catch-up, paging, jump-by-date, OMEMO with 2–3 devices and history/0 stayed clean. What made the page return foreign messages in the field is still unknown (prod server patches? an app-side path?).135ae233f— unitmessage-history-self-chat-keeps-another-chat-outandmessage-history-peer-chat-keeps-other-chats-out(fail on develop); rigtest_selfchat(passes on all four servers, guards end to end).737e26d28(~20 lines): for a bare 1:1 page, keep a result only if it's ours to that JID (or ours with noto, Prosody's notes to self) or from that JID. test_message 722/722; whole tree 10217/1 (pre-existing calls flake); rig selfchat 3/3, catchup 20/20, carbons 5/5, history 4/4.Question for the reporter: does closing and reopening Saved messages (or restarting the app) make the foreign messages go away? If yes, the app side is more likely; if they persist, they're stored rows.