Chat content updates in the background while playing with the Edit Shared Popup addresses #14376
Labels
backend-team
bug
Something isn't working
E:Desktop Comm Perms and Minting MVP
Misc tasks about Community permissions that are not part of another Epic, due for the MVP
E:Desktop Community Shared Addresses Selection
Implementation of the Shared Addresses feature for joining communities and also for edits
Milestone
Bug Report
Description
You can see it happening in the video from this comment: status-im/status-go#5023 (comment)
Basically, if you have a community with permissioned channels and have different accounts that have different tokens, if you go in a channel that has permissions, then go in the Edit Shared Addresses popup, when you select/unselect accounts, the permission check result will not only affect the popup, but also the chat in the background.
One solution would be to add a UUID to the permission check, so that when we send the result from the service, only the module that asked for that check handles the result. In this case, only the communities module should react to that event.
Steps to reproduce
Result: the popup edit correctly showing that you no longer have access to the channel, but in the background, the channel also loses access, even if we didn't send yet.
Expected behavior
Only the popup updates until the addresses are actually sent
Actual behavior
The chat_section module reacts to the check permission event even if it wasn't meant for it, resulting in the chat content to lock up before the addresses are even sent.
Additional Information
277dda7533c8602f2fe0a4c72615be05ff9df118
)The text was updated successfully, but these errors were encountered: