Closed osmaczko closed 1 year ago
One of the examples of subtle bugs is that
#channel
tag navigation doesn't work for spectated communities. It's becausegetCommunityById
seeks thejoinedCommunities
table instead ofallCommunities
.
That is already broken, see https://github.com/status-im/status-desktop/issues/9561
That is already broken, see #9561
On 0.10.0 it is only broken for spectated communities.
That is already broken, see #9561
On 0.10.0 it is only broken for spectated communities.
On master everywhere from what I can see
Description
https://github.com/status-im/status-desktop/blob/165271dbeae9dea98951285cf4198b6b47f09335/src/app_service/service/community/service.nim#L150-L152
We should have one source of truth when it comes to storing communities. Now joined communities are both stored in
allCommunities
andjoinedCommunities
tables. It may easily lead to miss-synchronization and as a result in hard-to-track bugs.One of the examples of subtle bugs is that
#channel
tag navigation doesn't work for spectated communities. It's becausegetCommunityById
seeks thejoinedCommunities
table instead ofallCommunities
.Motivated by: https://github.com/status-im/status-desktop/pull/9565#discussion_r1109439605