You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched searched open and closed issues for duplicates
I am submitting a bug report for existing functionality that does not work as intended
This isn't a feature request or a discussion topic
Bug description
Steps to reproduce:
Go to any Group Details and navigate to Add a new Member screen.
Try clicking on a contact multiple times, leading to adding and removing it from the selected members list.
This can cause some inconsistencies, like the total members count in the topbar, or the "Done" button being enabled or disabled.
If no new member is selected and the Done button is Enabled, then this can lead to the app crashing or unexpected behavior.
These inconsistencies can also be seen when creating a new group. The topbar and the "Next" button can behave weirdly or not expected.
Possible Solutions:
We might have to change the behavior of how we are updating the UI state. We are using SimpleTask.run to update the UI states, which is causing the issue, I am investigating this and will update the comments when I have solved this.
Simply Add an additional check when clicking on the done button, although the Precondition is already there but this does not help the user or UI, it just closes the screen as shown in the video.
My recommended approach is to use the contactMediator.getSelectionState() to get the livedata and observe it directly on the ContactSelectionListFragement. (The activities needing the selected contacts list are not the right place to observe onto this LiveData as they depend solely on the Fragment for any Contacts list updates).
Although the problem still exists If we replace the observed State with the contactSearchMediator.getSelectedContacts() at all places in ContactSelectionListFragement. So, I believe these two selectionStore.state and selectionStore.stateLiveData#latestValue always gives same result at the same time.
Guidelines
Bug description
Steps to reproduce:
These inconsistencies can also be seen when creating a new group. The topbar and the "Next" button can behave weirdly or not expected.
Possible Solutions:
Screenshots
document_6300953998052561959.mp4
Device
Realme GT NEO 3T
Android version
14
Signal version
7.28.4
Link to debug log
https://debuglogs.org/android/7.28.4/5ad56851355873fcf53a0171424f0dde3f31689ebfd4bc20c762b5f9a761895d
The text was updated successfully, but these errors were encountered: