fix: an admin's refused leave is shown, not thrown out of the view model (member-admin-promotion, Phase 10a)
leaveGroup called the repository inside viewModelScope.launch and caught nothing, so "An admin cannot leave; hand over admin first" escaped the coroutine: never shown, and on Android a crash. It now goes to an onFailed callback the screen reports through the notifier, as disbandGroup does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8088efd732
commit
2ed83c55ab
4 files changed
+106
-12
No files matched your search
@@ -106,6 +106,7 @@
|
||||
<string name="key_recovery">Key recovery</string>
|
||||
<string name="learn_more">Learn more</string>
|
||||
<string name="leave_group">Leave group</string>
|
||||
<string name="couldn_t_leave_the_group">Couldn't leave the group</string>
|
||||
<string name="remove_from_group">Remove from group</string>
|
||||
<string name="disband_group">Disband group</string>
|
||||
<string name="group_disbanded">This group was disbanded. Nothing more can be sent into it, and nobody can rejoin.</string>
|
||||
|
||||
Reference in new issue
Block a user