mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix layout of quoted replies.
This commit is contained in:
parent
6788810141
commit
bcde04766f
|
@ -1149,7 +1149,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
|
||||
NSValue *_Nullable quotedMessageSize = [self quotedMessageSize];
|
||||
if (quotedMessageSize) {
|
||||
if (senderNameSize) {
|
||||
if (!senderNameSize) {
|
||||
cellSize.height += self.quotedReplyTopMargin;
|
||||
}
|
||||
cellSize.width = MAX(cellSize.width, quotedMessageSize.CGSizeValue.width);
|
||||
|
|
|
@ -159,4 +159,24 @@ public class MessageRecipientStatusUtils: NSObject {
|
|||
referenceView: referenceView)
|
||||
return status
|
||||
}
|
||||
|
||||
@objc
|
||||
public class func description(forMessageReceiptStatus value: MessageReceiptStatus) -> String {
|
||||
switch(value) {
|
||||
case .read:
|
||||
return "read"
|
||||
case .uploading:
|
||||
return "uploading"
|
||||
case .delivered:
|
||||
return "delivered"
|
||||
case .sent:
|
||||
return "sent"
|
||||
case .sending:
|
||||
return "sending"
|
||||
case .failed:
|
||||
return "failed"
|
||||
case .skipped:
|
||||
return "skipped"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue