summarylogtreecommitdiffstats
path: root/dont_pulse_mentions.patch
blob: ec978229ff05d2aeeb0afcb39533fc261bcbd6c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: disables visual distractions from incoming mentions
Credits: novie

diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp
index 305f9c71d..c0add9da2 100644
--- a/Telegram/SourceFiles/history/history_inner_widget.cpp
+++ b/Telegram/SourceFiles/history/history_inner_widget.cpp
@@ -626,7 +626,6 @@ void HistoryInner::paintEvent(QPaintEvent *e) {
 				}
 				if (item->isUnreadMention() && !item->isUnreadMedia()) {
 					readMentions.insert(item);
-					_widget->enqueueMessageHighlight(view);
 				}
 
 				int32 h = view->height();
@@ -672,7 +671,6 @@ void HistoryInner::paintEvent(QPaintEvent *e) {
 					}
 					if (item->isUnreadMention() && !item->isUnreadMedia()) {
 						readMentions.insert(item);
-						_widget->enqueueMessageHighlight(view);
 					}
 				}
 				p.translate(0, h);