mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added clearing of message sending animations on escape from section.
This commit is contained in:
parent
cf5f5f75bc
commit
9d164dc33c
4 changed files with 9 additions and 0 deletions
|
@ -1988,6 +1988,7 @@ void HistoryWidget::showHistory(
|
||||||
}
|
}
|
||||||
|
|
||||||
clearHighlightMessages();
|
clearHighlightMessages();
|
||||||
|
controller()->sendingAnimation().clear();
|
||||||
hideInfoTooltip(anim::type::instant);
|
hideInfoTooltip(anim::type::instant);
|
||||||
if (_history) {
|
if (_history) {
|
||||||
if (_peer->id == peerId && !reload) {
|
if (_peer->id == peerId && !reload) {
|
||||||
|
|
|
@ -324,6 +324,7 @@ RepliesWidget::~RepliesWidget() {
|
||||||
_history->owner().sendActionManager().repliesPainterRemoved(
|
_history->owner().sendActionManager().repliesPainterRemoved(
|
||||||
_history,
|
_history,
|
||||||
_rootId);
|
_rootId);
|
||||||
|
controller()->sendingAnimation().clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RepliesWidget::orderWidgets() {
|
void RepliesWidget::orderWidgets() {
|
||||||
|
|
|
@ -260,4 +260,9 @@ bool MessageSendingAnimationController::hasAnimatedMessage(
|
||||||
return _processing.contains(item);
|
return _processing.contains(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MessageSendingAnimationController::clear() {
|
||||||
|
_itemSendPending.clear();
|
||||||
|
_processing.clear();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Ui
|
} // namespace Ui
|
||||||
|
|
|
@ -40,6 +40,8 @@ public:
|
||||||
[[nodiscard]] bool hasLocalMessage(MsgId msgId) const;
|
[[nodiscard]] bool hasLocalMessage(MsgId msgId) const;
|
||||||
[[nodiscard]] bool hasAnimatedMessage(not_null<HistoryItem*> item) const;
|
[[nodiscard]] bool hasAnimatedMessage(not_null<HistoryItem*> item) const;
|
||||||
|
|
||||||
|
void clear();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
const not_null<Window::SessionController*> _controller;
|
const not_null<Window::SessionController*> _controller;
|
||||||
|
|
Loading…
Add table
Reference in a new issue