status-go/cmd
Jonathan Rainville a6285cc827
Fix chats reseting when a Sync signal comes for communities (#3539)
* fix(community): stop re-joining comm when receiving a sync community msg

Fixes an issue with chats being reset. Since joining a community resaves the chats with the synced default value, it resets the sate of the chats, losing the unread messages, the muted state and more.
The solution is to block the re-joining of the community. In the case of the sync, we catch that error and just continue on.

* fix(import): fix HandleImport not saving the chat

Doesn't change much, but it could have caused issues in the future, so since we might have modified the chat, we make sure to save them
Also adds a test

* fix tests
2023-05-29 13:57:05 -04:00
..
bootnode Remove protocol and eth-node submodules (#1835) 2020-02-10 12:22:37 +01:00
library feat: add function to free memory (#2344) 2021-08-31 15:17:44 -04:00
node-canary Remove Ropsten and Rinkeby test networks 2022-10-24 14:17:46 +02:00
ping-community Fix chats reseting when a Sync signal comes for communities (#3539) 2023-05-29 13:57:05 -04:00
populate-db Add spiff workflow cmd 2023-03-16 14:31:34 +00:00
spiff-workflow feat: add `pprof` flag to spiff-workflow 2023-05-18 15:22:05 +02:00
statusd Check ownership of collectibles in community permissions 2023-03-29 18:20:09 +02:00
topics Clean topics that we don't listen to 2021-01-26 09:39:57 +01:00