mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added clearing of message sending animations on escape from section.
This commit is contained in:
@@ -1988,6 +1988,7 @@ void HistoryWidget::showHistory(
|
||||
}
|
||||
|
||||
clearHighlightMessages();
|
||||
controller()->sendingAnimation().clear();
|
||||
hideInfoTooltip(anim::type::instant);
|
||||
if (_history) {
|
||||
if (_peer->id == peerId && !reload) {
|
||||
|
||||
@@ -324,6 +324,7 @@ RepliesWidget::~RepliesWidget() {
|
||||
_history->owner().sendActionManager().repliesPainterRemoved(
|
||||
_history,
|
||||
_rootId);
|
||||
controller()->sendingAnimation().clear();
|
||||
}
|
||||
|
||||
void RepliesWidget::orderWidgets() {
|
||||
|
||||
@@ -260,4 +260,9 @@ bool MessageSendingAnimationController::hasAnimatedMessage(
|
||||
return _processing.contains(item);
|
||||
}
|
||||
|
||||
void MessageSendingAnimationController::clear() {
|
||||
_itemSendPending.clear();
|
||||
_processing.clear();
|
||||
}
|
||||
|
||||
} // namespace Ui
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
[[nodiscard]] bool hasLocalMessage(MsgId msgId) const;
|
||||
[[nodiscard]] bool hasAnimatedMessage(not_null<HistoryItem*> item) const;
|
||||
|
||||
void clear();
|
||||
|
||||
private:
|
||||
|
||||
const not_null<Window::SessionController*> _controller;
|
||||
|
||||
Reference in New Issue
Block a user