mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Don't show name ripple when clicking userpic.
This commit is contained in:
@@ -2368,7 +2368,9 @@ void Message::clickHandlerPressedChanged(
|
|||||||
; badge && badge->tagLink && handler == badge->tagLink) {
|
; badge && badge->tagLink && handler == badge->tagLink) {
|
||||||
toggleBadgeRipple(pressed);
|
toggleBadgeRipple(pressed);
|
||||||
} else if (displayFromName() && handler == fromLink()) {
|
} else if (displayFromName() && handler == fromLink()) {
|
||||||
startLinkRipple();
|
if (_fromLinkRipplePointSet || !pressed) {
|
||||||
|
startLinkRipple();
|
||||||
|
}
|
||||||
} else if (const auto via = data()->Get<HistoryMessageVia>()
|
} else if (const auto via = data()->Get<HistoryMessageVia>()
|
||||||
; via
|
; via
|
||||||
&& (handler == via->link)
|
&& (handler == via->link)
|
||||||
@@ -2792,6 +2794,8 @@ bool Message::hasFromPhoto() const {
|
|||||||
TextState Message::textState(
|
TextState Message::textState(
|
||||||
QPoint point,
|
QPoint point,
|
||||||
StateRequest request) const {
|
StateRequest request) const {
|
||||||
|
_fromLinkRipplePointSet = 0;
|
||||||
|
|
||||||
const auto item = data();
|
const auto item = data();
|
||||||
const auto media = this->media();
|
const auto media = this->media();
|
||||||
|
|
||||||
@@ -3154,6 +3158,7 @@ bool Message::getStateFromName(
|
|||||||
&& point.x() < availableLeft + nameText->maxWidth()) {
|
&& point.x() < availableLeft + nameText->maxWidth()) {
|
||||||
outResult->link = fromLink();
|
outResult->link = fromLink();
|
||||||
recordLinkRipplePoint(point, trect.topLeft());
|
recordLinkRipplePoint(point, trect.topLeft());
|
||||||
|
_fromLinkRipplePointSet = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
auto via = item->Get<HistoryMessageVia>();
|
auto via = item->Get<HistoryMessageVia>();
|
||||||
|
|||||||
@@ -393,10 +393,11 @@ private:
|
|||||||
mutable int _fromNameVersion = 0;
|
mutable int _fromNameVersion = 0;
|
||||||
mutable int _bubbleTextualWidthMinimum : 16 = -1;
|
mutable int _bubbleTextualWidthMinimum : 16 = -1;
|
||||||
mutable int _bubbleTextualWidthCache : 16 = 0;
|
mutable int _bubbleTextualWidthCache : 16 = 0;
|
||||||
uint32 _bubbleWidthLimit : 27 = 0;
|
uint32 _bubbleWidthLimit : 26 = 0;
|
||||||
uint32 _invertMedia : 1 = 0;
|
uint32 _invertMedia : 1 = 0;
|
||||||
uint32 _hideReply : 1 = 0;
|
uint32 _hideReply : 1 = 0;
|
||||||
uint32 _postShowingAuthor : 1 = 0;
|
uint32 _postShowingAuthor : 1 = 0;
|
||||||
|
mutable uint32 _fromLinkRipplePointSet : 1 = 0;
|
||||||
|
|
||||||
BottomInfo _bottomInfo;
|
BottomInfo _bottomInfo;
|
||||||
mutable QPoint _lastMediaPosition;
|
mutable QPoint _lastMediaPosition;
|
||||||
|
|||||||
Reference in New Issue
Block a user