Skip to content

fix(mam): do not discard self sent messages received via MAM if sent … - #2196

Merged
jubalh merged 1 commit into
masterfrom
fix/profoff
Jul 21, 2026
Merged

fix(mam): do not discard self sent messages received via MAM if sent …#2196
jubalh merged 1 commit into
masterfrom
fix/profoff

Conversation

@jubalh

@jubalh jubalh commented Jul 21, 2026

Copy link
Copy Markdown
Member

…offline

Profanity is offline and the user is sending messages from another client,

When Profanity comes online and requests MAM history, these self sent messages are received.
Before sv_ev_incoming_message classified all MAM messages from our own bare JID as a self reflection, attempted to update their archive ID in the database, and then immediately discarded them by returning early. Since the database update failed because the message was sent while offline, the message was permanently lost and never logged or displayed.

@jubalh jubalh added this to the next milestone Jul 21, 2026
@jubalh jubalh self-assigned this Jul 21, 2026
@jubalh jubalh added the MAM label Jul 21, 2026
@jubalh

jubalh commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

Tested by vamp898

…offline

Profanity is offline and the user is sending messages from another client,

When Profanity comes online and requests MAM history, these self sent messages are
received.
Before sv_ev_incoming_message classified all MAM messages from our own bare
JID as a self reflection, attempted to update their archive ID in the database, and
then immediately discarded them by returning early.
Since the database update failed because the message was sent while offline,
the message was permanently lost and never logged or displayed.

Tested-By: vamp898
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh
jubalh merged commit bfa59da into master Jul 21, 2026
12 checks passed
@jubalh
jubalh deleted the fix/profoff branch July 21, 2026 09:41
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.

1 participant