2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Extract Data::Thread common for History / ForumTopic.

This commit is contained in:
John Preston
2022-10-13 14:32:03 +04:00
parent 9fccdf21cc
commit b8bdca8921
38 changed files with 675 additions and 627 deletions

View File

@@ -823,8 +823,8 @@ void Notification::updateNotifyDisplay() {
const auto options = manager()->getNotificationOptions(
_item,
(_reaction.empty()
? ItemNotificationType::Message
: ItemNotificationType::Reaction));
? Data::ItemNotificationType::Message
: Data::ItemNotificationType::Reaction));
_hideReplyButton = options.hideReplyButton;
int32 w = width(), h = height();
@@ -1118,7 +1118,9 @@ bool Notification::unlinkSession(not_null<Main::Session*> session) {
}
void Notification::enterEventHook(QEnterEvent *e) {
if (!_history) return;
if (!_history) {
return;
}
manager()->stopAllHiding();
if (!_replyArea && canReply()) {
toggleActionButtons(true);
@@ -1126,7 +1128,9 @@ void Notification::enterEventHook(QEnterEvent *e) {
}
void Notification::leaveEventHook(QEvent *e) {
if (!_history) return;
if (!_history) {
return;
}
manager()->startAllHiding();
toggleActionButtons(false);
}