mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-03 18:49:30 +00:00
Replaced single QuickActionContext in dialogs widget with flat map.
This commit is contained in:
@@ -694,7 +694,7 @@ void Widget::setupSwipeBack() {
|
||||
&& _inner
|
||||
&& (Core::App().settings().quickDialogAction()
|
||||
!= Ui::QuickDialogAction::Disabled)) {
|
||||
_inner->setSwipeContextData(std::move(data));
|
||||
_inner->setSwipeContextData(data.msgBareId, std::move(data));
|
||||
} else {
|
||||
if (!_swipeBackData.callback) {
|
||||
_swipeBackData = Ui::Controls::SetupSwipeBack(
|
||||
@@ -716,7 +716,7 @@ void Widget::setupSwipeBack() {
|
||||
_swipeBackData = {};
|
||||
}
|
||||
if (_inner) {
|
||||
_inner->setSwipeContextData({});
|
||||
_inner->setSwipeContextData(data.msgBareId, std::nullopt);
|
||||
_inner->update();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user