Various UI fixes

This commit is contained in:
Ilya Laktyushin
2018-11-30 20:13:50 +04:00
parent 45e7a44eb2
commit dd59f921d5
56 changed files with 3978 additions and 3331 deletions

View File

@@ -402,7 +402,7 @@ public final class ChatController: TelegramController, KeyShortcutResponder, UID
self?.openPeer(peerId: id, navigation: navigation, fromMessage: fromMessage)
}, openPeerMention: { [weak self] name in
self?.openPeerMention(name)
}, openMessageContextMenu: { [weak self] message, node, frame in
}, openMessageContextMenu: { [weak self] message, selectAll, node, frame in
guard let strongSelf = self, strongSelf.isNodeLoaded else {
return
}
@@ -415,7 +415,7 @@ public final class ChatController: TelegramController, KeyShortcutResponder, UID
break
}
}
let _ = contextMenuForChatPresentationIntefaceState(chatPresentationInterfaceState: strongSelf.presentationInterfaceState, account: strongSelf.account, messages: updatedMessages, controllerInteraction: strongSelf.controllerInteraction, interfaceInteraction: strongSelf.interfaceInteraction).start(next: { actions in
let _ = contextMenuForChatPresentationIntefaceState(chatPresentationInterfaceState: strongSelf.presentationInterfaceState, account: strongSelf.account, messages: updatedMessages, controllerInteraction: strongSelf.controllerInteraction, selectAll: selectAll, interfaceInteraction: strongSelf.interfaceInteraction).start(next: { actions in
guard let strongSelf = self, !actions.isEmpty else {
return
}