mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix build with GCC.
This commit is contained in:
parent
f6ff0f3b2c
commit
4e88ea970e
4 changed files with 0 additions and 7 deletions
|
@ -1183,9 +1183,6 @@ void Updates::applyUpdateNoPtsCheck(const MTPUpdate &update) {
|
||||||
auto unknownReadIds = base::flat_set<MsgId>();
|
auto unknownReadIds = base::flat_set<MsgId>();
|
||||||
for (const auto &msgId : d.vmessages().v) {
|
for (const auto &msgId : d.vmessages().v) {
|
||||||
if (const auto item = _session->data().nonChannelMessage(msgId.v)) {
|
if (const auto item = _session->data().nonChannelMessage(msgId.v)) {
|
||||||
const auto unreadForPeer = item->isUnreadMedia()
|
|
||||||
|| item->isUnreadMention();
|
|
||||||
const auto unreadForMe = item->hasUnreadReaction();
|
|
||||||
if (item->isUnreadMedia() || item->isUnreadMention()) {
|
if (item->isUnreadMedia() || item->isUnreadMention()) {
|
||||||
item->markMediaAndMentionRead();
|
item->markMediaAndMentionRead();
|
||||||
_session->data().requestItemRepaint(item);
|
_session->data().requestItemRepaint(item);
|
||||||
|
|
|
@ -3425,7 +3425,6 @@ void HistoryWidget::showNextUnreadMention() {
|
||||||
|
|
||||||
void HistoryWidget::showNextUnreadReaction() {
|
void HistoryWidget::showNextUnreadReaction() {
|
||||||
const auto msgId = _history->unreadReactions().minLoaded();
|
const auto msgId = _history->unreadReactions().minLoaded();
|
||||||
const auto already = (_showAtMsgId == msgId);
|
|
||||||
showHistory(_peer->id, msgId);
|
showHistory(_peer->id, msgId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -805,7 +805,6 @@ TextState Gif::textState(QPoint point, StateRequest request) const {
|
||||||
}
|
}
|
||||||
const auto outbg = _parent->hasOutLayout();
|
const auto outbg = _parent->hasOutLayout();
|
||||||
const auto inWebPage = (_parent->media() != this);
|
const auto inWebPage = (_parent->media() != this);
|
||||||
const auto isRound = _data->isVideoMessage();
|
|
||||||
const auto unwrapped = isUnwrapped();
|
const auto unwrapped = isUnwrapped();
|
||||||
const auto item = _parent->data();
|
const auto item = _parent->data();
|
||||||
auto usew = paintw, usex = 0;
|
auto usew = paintw, usex = 0;
|
||||||
|
|
|
@ -1908,8 +1908,6 @@ void Gif::clipCallback(Media::Clip::Notification notification) {
|
||||||
_gif->height());
|
_gif->height());
|
||||||
_gif.reset();
|
_gif.reset();
|
||||||
} else {
|
} else {
|
||||||
auto height = st::inlineMediaHeight;
|
|
||||||
auto frame = countFrameSize();
|
|
||||||
_gif->start({
|
_gif->start({
|
||||||
.frame = countFrameSize(),
|
.frame = countFrameSize(),
|
||||||
.outer = { _width, st::inlineMediaHeight },
|
.outer = { _width, st::inlineMediaHeight },
|
||||||
|
|
Loading…
Add table
Reference in a new issue