mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Don't scroll large message menus.
This commit is contained in:
@@ -2024,7 +2024,9 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||
}
|
||||
_menu = base::make_unique_q<Ui::PopupMenu>(
|
||||
this,
|
||||
hasWhoReactedItem ? st::whoReadMenu : st::popupMenuWithIcons);
|
||||
(hasWhoReactedItem
|
||||
? st::popupMenuExpandedSeparator
|
||||
: st::popupMenuWithIcons));
|
||||
const auto session = &this->session();
|
||||
const auto controller = _controller;
|
||||
const auto groupLeaderOrSelf = [](HistoryItem *item) -> HistoryItem* {
|
||||
|
||||
@@ -952,7 +952,9 @@ base::unique_qptr<Ui::PopupMenu> FillContextMenu(
|
||||
|
||||
auto result = base::make_unique_q<Ui::PopupMenu>(
|
||||
list,
|
||||
hasWhoReactedItem ? st::whoReadMenu : st::popupMenuWithIcons);
|
||||
(hasWhoReactedItem
|
||||
? st::popupMenuExpandedSeparator
|
||||
: st::popupMenuWithIcons));
|
||||
|
||||
if (request.overSelection && !list->hasCopyRestrictionForSelected()) {
|
||||
const auto text = request.selectedItems.empty()
|
||||
|
||||
@@ -287,7 +287,9 @@ void Action::populateSubmenu() {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto submenu = _parentMenu->ensureSubmenu(action());
|
||||
const auto submenu = _parentMenu->ensureSubmenu(
|
||||
action(),
|
||||
st::whoReadMenu);
|
||||
_submenu.populate(submenu, _content);
|
||||
_parentMenu->checkSubmenuShow();
|
||||
}
|
||||
|
||||
+1
-1
Submodule Telegram/lib_ui updated: 4ff70e7dff...9b0f4df007
Reference in New Issue
Block a user