Resolve groups v2-related TODOs.

This commit is contained in:
Matthew Chen 2020-03-02 10:37:39 -03:00
parent 8749581ce7
commit adec197edb
2 changed files with 2 additions and 0 deletions

View File

@ -1600,6 +1600,7 @@ NSString *const kArchiveButtonPseudoGroup = @"kArchiveButtonPseudoGroup";
[self.conversationSplitViewController closeSelectedConversationAnimated:YES];
}
// GroupsV2 TODO: Should we leave v2 groups here?
[self.databaseStorage writeWithBlock:^(SDSAnyWriteTransaction *transaction) {
if ([thread isKindOfClass:[TSGroupThread class]]) {
TSGroupThread *groupThread = (TSGroupThread *)thread;

View File

@ -292,6 +292,7 @@ public class GroupV2UpdatesImpl: NSObject, GroupV2UpdatesSwift {
groupUpdateMode: groupUpdateMode)
.recover { (error) throws -> Promise<TSGroupThread> in
let shouldTrySnapshot = { () -> Bool in
// This should not fail over in the case of networking problems.
if IsNetworkConnectivityFailure(error) {
Logger.warn("Error: \(error)")
return false