Skip to content
Snippets Groups Projects
Commit 4a14122e authored by François-Simon Fauteux-Chapleau's avatar François-Simon Fauteux-Chapleau
Browse files

conversation: fix invalid message status cache

The Conversation::loadMessages2 function uses the information cached in
both loadedHistory_ and memberToStatus, so it's important for the two to
always remain consistent with each other. This patch fixes two issues
that could cause them to diverge:

1) the Conversation::clearCache function currently resets
   loadedHistory_, but not memberToStatus;

2) Conversation::Impl::loadMessage2 doesn't modify loadedHistory_ but
   sometimes resets memberToStatus.

GitLab: #1087
Change-Id: I21caedea996d5ad66b695a0f130cd473c5d5ddc4
parent 3ab6be55
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment