Skip to content

fix(omemo): Correctly display our own sent OMEMO messages in MUCs and 1:1 chats - #2195

Merged
jubalh merged 1 commit into
masterfrom
fix/mucomemoreflection
Jul 20, 2026
Merged

fix(omemo): Correctly display our own sent OMEMO messages in MUCs and 1:1 chats#2195
jubalh merged 1 commit into
masterfrom
fix/mucomemoreflection

Conversation

@jubalh

@jubalh jubalh commented Jul 20, 2026

Copy link
Copy Markdown
Member

We log our own messages when we send them.
Thus we don't have the stable archive ID that the server assigns to it.

When we get MAM history (or standard MUC history), we look for the ID,
think the message is new and thus display a decryption error because
we can't decrypt the message due to double-ratchet.

Unify database update and retrieval functions using the prof_msg_type_t enum
to stay DRY, and support both MUC and 1:1 chats.

Update stable ID for self-reflected messages in our database.
So later we can identify them correctly and load them from the DB.

@jubalh jubalh added this to the next milestone Jul 20, 2026
@jubalh jubalh self-assigned this Jul 20, 2026
@jubalh

jubalh commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

Confirmed by vamp898 in the MUC to fix the issue he reported.

… 1:1 chats

We log our own messages when we send them.
Thus we don't have the stable archive ID that the server assigns to it.

When we get MAM history (or standard MUC history), we look for the ID,
think the message is new and thus display a decryption error because
we can't decrypt the message due to double-ratchet.

Unify database update and retrieval functions using the prof_msg_type_t enum
to stay DRY, and support both MUC and 1:1 chats.

Update stable ID for self-reflected messages in our database.
So later we can identify them correctly and load them from the DB.

Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh
jubalh force-pushed the fix/mucomemoreflection branch from 243d52d to 8e01397 Compare July 20, 2026 14:34
@jubalh jubalh changed the title fix(omemo): Correctly display our own sent OMEMO messages in MUCs fix(omemo): Correctly display our own sent OMEMO messages in MUCs and 1:1 chats Jul 20, 2026
@jubalh

jubalh commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

Confirmed by vamp898 in the MUC to fix the issue he reported.

Later he found another issue. I updated the commit, lets see.

@jubalh

jubalh commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

Confirmed to fix the issue.

@jubalh
jubalh merged commit f0e9580 into master Jul 20, 2026
12 checks passed
@jubalh
jubalh deleted the fix/mucomemoreflection branch July 20, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant