mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
fix: make it build
fix: `disableStories`
This commit is contained in:
parent
43b0df3f94
commit
e2fafc62fd
2 changed files with 4 additions and 5 deletions
|
@ -58,6 +58,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
// AyuGram includes
|
// AyuGram includes
|
||||||
#include "ayu/ayu_settings.h"
|
#include "ayu/ayu_settings.h"
|
||||||
#include "base/unixtime.h"
|
#include "base/unixtime.h"
|
||||||
|
#include "styles/style_menu_icons.h"
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -536,11 +536,9 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||||
&& row.userpicClick
|
&& row.userpicClick
|
||||||
&& (row.message.fullId.msg == ShowAtUnreadMsgId)
|
&& (row.message.fullId.msg == ShowAtUnreadMsgId)
|
||||||
&& history->peer->hasActiveStories()
|
&& history->peer->hasActiveStories()
|
||||||
&& !history->peer->isSelf()) {
|
&& !history->peer->isSelf()
|
||||||
const auto settings = &AyuSettings::getInstance();
|
&& !AyuSettings::getInstance().disableStories) {
|
||||||
if (!settings->disableStories) {
|
controller()->openPeerStories(history->peer->id);
|
||||||
controller()->openPeerStories(history->peer->id);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
} else if (history
|
} else if (history
|
||||||
&& history->isForum()
|
&& history->isForum()
|
||||||
|
|
Loading…
Add table
Reference in a new issue