Skip to content

fix: Fix crash when loading MAM for a contact with empty db#2144

Merged
jubalh merged 1 commit intomasterfrom
fix/2124
Apr 2, 2026
Merged

fix: Fix crash when loading MAM for a contact with empty db#2144
jubalh merged 1 commit intomasterfrom
fix/2124

Conversation

@jubalh
Copy link
Copy Markdown
Member

@jubalh jubalh commented Apr 2, 2026

I think this bug happens when a user scrolls up a window, triggering iq_mam_request_older() to load older history, in the case when the database is empty for that contact.

The initial MAM fetch is triggered when the window is opened which should get the latest history.

I think this bug happens when a user scrolls up a window, triggering
iq_mam_request_older() to load older history, in the case when the
database is empty for that contact.

The initial MAM fetch is triggered when the window is opened which
should get the latest history.

Fixes: #2142
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh jubalh added this to the 0.18.0 milestone Apr 2, 2026
@jubalh jubalh merged commit c49ee8d into master Apr 2, 2026
9 checks passed
@jubalh jubalh deleted the fix/2124 branch April 2, 2026 14:12
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