Skip to content

Commit

Permalink
Fix bug refreshing groups after unblocking
Browse files Browse the repository at this point in the history
  • Loading branch information
max-signal authored Jan 10, 2025
1 parent 7263e2c commit 8459b86
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SignalServiceKit/Messages/BlockingManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,16 @@ extension BlockingManager {
}

if let groupThread = TSGroupThread.fetch(groupId: groupId, transaction: transaction) {
// Refresh unblocked group.
SSKEnvironment.shared.groupV2UpdatesRef.tryToRefreshV2GroupUpToCurrentRevisionAfterMessageProcessingWithoutThrottling(groupThread)

// Insert an info message that we unblocked.
DependenciesBridge.shared.interactionStore.insertInteraction(
TSInfoMessage(thread: groupThread, messageType: .unblockedGroup),
tx: transaction.asV2Write
)

// Refresh unblocked group.
transaction.addSyncCompletion {
SSKEnvironment.shared.groupV2UpdatesRef.tryToRefreshV2GroupUpToCurrentRevisionAfterMessageProcessingWithoutThrottling(groupThread)
}
}
}
}
Expand Down

0 comments on commit 8459b86

Please sign in to comment.