mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix group chat quote display name
This commit is contained in:
parent
f205767b98
commit
f7b66f05a0
|
@ -549,7 +549,16 @@ const CGFloat kRemotelySourcedContentRowSpacing = 3;
|
|||
}
|
||||
} else {
|
||||
OWSContactsManager *contactsManager = Environment.shared.contactsManager;
|
||||
NSString *quotedAuthor = [contactsManager contactOrProfileNameForPhoneIdentifier:self.quotedMessage.authorId];
|
||||
__block NSString *quotedAuthor = [contactsManager contactOrProfileNameForPhoneIdentifier:self.quotedMessage.authorId];
|
||||
|
||||
if (quotedAuthor == self.quotedMessage.authorId) {
|
||||
[OWSPrimaryStorage.sharedManager.dbReadConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
|
||||
NSString *collection = [NSString stringWithFormat:@"%@.%@", LKGroupChatAPI.publicChatServer, @(LKGroupChatAPI.publicChatServerID)];
|
||||
NSString *displayName = [transaction stringForKey:self.quotedMessage.authorId inCollection:collection];
|
||||
if (displayName != nil) { quotedAuthor = displayName; }
|
||||
}];
|
||||
}
|
||||
|
||||
quotedAuthorText = [NSString
|
||||
stringWithFormat:
|
||||
NSLocalizedString(@"QUOTED_REPLY_AUTHOR_INDICATOR_FORMAT",
|
||||
|
|
Loading…
Reference in a new issue