mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix file bubble layout
This commit is contained in:
@@ -71,7 +71,7 @@ class ChatMessageFileBubbleContentNode: ChatMessageBubbleContentNode {
|
||||
let incoming = item.message.effectivelyIncoming(item.context.account.peerId)
|
||||
let statusType: ChatMessageDateAndStatusType?
|
||||
switch preparePosition {
|
||||
case .linear(_, .None), .linear(_, .Neighbour(true, _)):
|
||||
case .linear(_, .None), .linear(_, .Neighbour(true, _, _)):
|
||||
if incoming {
|
||||
statusType = .BubbleIncoming
|
||||
} else {
|
||||
@@ -102,7 +102,7 @@ class ChatMessageFileBubbleContentNode: ChatMessageBubbleContentNode {
|
||||
var bottomInset = layoutConstants.file.bubbleInsets.bottom
|
||||
|
||||
if case let .linear(_, bottom) = position {
|
||||
if case .Neighbour = bottom {
|
||||
if case .Neighbour(_, _, .condensed) = bottom {
|
||||
bottomInset -= 24.0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user