mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge branch 'charlesmchen/contactSharePreviews'
This commit is contained in:
commit
f2cc8cf9d2
|
@ -262,8 +262,11 @@ static const NSUInteger OWSMessageSchemaVersion = 4;
|
||||||
} else if (attachmentDescription.length > 0) {
|
} else if (attachmentDescription.length > 0) {
|
||||||
return attachmentDescription;
|
return attachmentDescription;
|
||||||
} else if (self.contactShare) {
|
} else if (self.contactShare) {
|
||||||
// TODO: Include properly formatted name.
|
if (CurrentAppContext().isRTL) {
|
||||||
return @"👤";
|
return [self.contactShare.displayName stringByAppendingString:@" 👤"];
|
||||||
|
} else {
|
||||||
|
return [@"👤 " stringByAppendingString:self.contactShare.displayName];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
OWSFail(@"%@ message has neither body nor attachment.", self.logTag);
|
OWSFail(@"%@ message has neither body nor attachment.", self.logTag);
|
||||||
// TODO: We should do better here.
|
// TODO: We should do better here.
|
||||||
|
|
Loading…
Reference in a new issue