no message

This commit is contained in:
Peter
2017-07-14 15:34:30 +03:00
parent caa0f057d4
commit b6ded073ad
274 changed files with 18852 additions and 1582 deletions

View File

@@ -462,7 +462,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
var actionButtonsFinalize: ((CGFloat) -> (CGSize, (_ animated: Bool) -> ChatMessageActionButtonsNode))?
if let replyMarkup = replyMarkup {
let (minWidth, buttonsLayout) = actionButtonsLayout(item.theme, replyMarkup, maximumNodeWidth)
let (minWidth, buttonsLayout) = actionButtonsLayout(item.theme, item.strings, replyMarkup, item.message, maximumNodeWidth)
maxContentWidth = max(maxContentWidth, minWidth)
actionButtonsFinalize = buttonsLayout
}
@@ -1166,7 +1166,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
controllerInteraction.openPeer(peerId, .chat(textInputState: ChatTextInputState(inputText: "@\(addressName) \(query)")), nil)
}
case .payment:
break
controllerInteraction.openCheckoutOrReceipt(item.message.id)
}
}
}