mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-15 19:50:30 +00:00
ios: reset loaded members on in-place chat change
This commit is contained in:
@@ -359,6 +359,7 @@ struct ChatView: View {
|
||||
revealedItems = Set()
|
||||
stopAudioPlayer()
|
||||
if let cId {
|
||||
chatModel.membersLoaded = false
|
||||
if let c = chatModel.getChat(cId) {
|
||||
chat = c
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ struct MemberSupportView: View {
|
||||
var body: some View {
|
||||
viewBody()
|
||||
.onAppear {
|
||||
if !chatModel.membersLoaded || chatModel.groupMembers.first?.wrapped.groupId != groupInfo.groupId {
|
||||
if !chatModel.membersLoaded {
|
||||
Task {
|
||||
await chatModel.loadGroupMembers(groupInfo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user