mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
fix long messages in group chat being cut off
This commit is contained in:
parent
2286fb3709
commit
d8a02f15a7
|
@ -555,7 +555,8 @@ final class VisibleMessageCell : MessageCell, LinkPreviewViewDelegate {
|
|||
switch viewItem.interaction.interactionType() {
|
||||
case .outgoingMessage: return screen.width - contactThreadHSpacing - gutterSize
|
||||
case .incomingMessage:
|
||||
let leftGutterSize = shouldShowProfilePicture(for: viewItem) ? gutterSize : contactThreadHSpacing
|
||||
let isGroupThread = viewItem.interaction.thread.isGroupThread()
|
||||
let leftGutterSize = isGroupThread ? gutterSize : contactThreadHSpacing
|
||||
return screen.width - leftGutterSize - gutterSize
|
||||
default: preconditionFailure()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue