Skip to content

Commit

Permalink
Fix a bug when users are added/removed from group during a call
Browse files Browse the repository at this point in the history
  • Loading branch information
Imperiopolis committed Dec 9, 2020
1 parent 98b46a3 commit ce7d023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Signal/src/Calls/CallService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ public final class CallService: NSObject {
}

private func groupMemberInfo(for thread: TSGroupThread) -> [GroupMemberInfo]? {
// Make sure we're working with the latest group state.
databaseStorage.read { thread.anyReload(transaction: $0) }

guard let groupModel = thread.groupModel as? TSGroupModelV2,
let groupV2Params = try? groupModel.groupV2Params() else {
owsFailDebug("Unexpected group thread.")
Expand Down

0 comments on commit ce7d023

Please sign in to comment.