no message

This commit is contained in:
Ilya Laktyushin
2018-09-07 01:04:54 +03:00
parent 9fc21e5b5f
commit c6682b1bd9

View File

@@ -263,9 +263,16 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
return false
}
for media in item.content.firstMessage.media {
if let media = media as? TelegramMediaAction, case .phoneCall(_, _, _) = media.action {
if let _ = media as? TelegramMediaExpiredContent {
return false
}
else if let media = media as? TelegramMediaAction {
if case .phoneCall(_, _, _) = media.action {
} else {
return false
}
}
}
return item.controllerInteraction.canSetupReply(item.message)
}