status-desktop/src
Jonathan Rainville b9a2e62602 fix(message/service): fix msg not appearing in new chat because of race
Fixes #10340

Fixes a race condition when receiving a message in a channel that doesn't exist yet (for example in a delete 1-1 chat).
What happens is that the status-go signal contains both the message and the chat. Both are handled by different services, so there was a race between the two of them. If the chat service handled the chat first, then the message was added correctly, but in the case of the message service handling it first, it would try to add the message to a chat that doesn't exist yet, so it wouldn't work.

I also cleaned the ChatUpdateArgs by removing the messages arg that was not used anywhere and also was a bit counter-intuitive. Why did a Chat arg have messages?
2023-05-05 11:09:32 -04:00
..
app fix(message/service): fix msg not appearing in new chat because of race 2023-05-05 11:09:32 -04:00
app_service fix(message/service): fix msg not appearing in new chat because of race 2023-05-05 11:09:32 -04:00
backend fix(chats): fix unread counters in many instances 2023-05-02 14:33:14 -04:00
dev core: Add benchmarking tools 2023-03-09 09:20:34 +02:00
constants.nim feat(@desktop/wallet): remove isWalletEnabled from local settings and 2023-03-22 10:39:59 +03:00
contributing.md docs(general-cpp): Initial proposal / best general and cpp practices 2022-05-12 19:06:15 +02:00
nim_status_client.nim fix(StatusQ): StatusQ is QML module (#10207) 2023-04-14 11:18:56 +03:00
nim_windows_launcher.nim feat(@desktop/Windows): status-im:// protocol support and installer fixes 2021-09-09 16:53:09 -04:00