mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: make it build
fix: `disableStories`
This commit is contained in:
@@ -58,6 +58,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
// AyuGram includes
|
||||
#include "ayu/ayu_settings.h"
|
||||
#include "base/unixtime.h"
|
||||
#include "styles/style_menu_icons.h"
|
||||
#include <QBuffer>
|
||||
|
||||
|
||||
|
||||
@@ -536,11 +536,9 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||
&& row.userpicClick
|
||||
&& (row.message.fullId.msg == ShowAtUnreadMsgId)
|
||||
&& history->peer->hasActiveStories()
|
||||
&& !history->peer->isSelf()) {
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (!settings->disableStories) {
|
||||
controller()->openPeerStories(history->peer->id);
|
||||
}
|
||||
&& !history->peer->isSelf()
|
||||
&& !AyuSettings::getInstance().disableStories) {
|
||||
controller()->openPeerStories(history->peer->id);
|
||||
return;
|
||||
} else if (history
|
||||
&& history->isForum()
|
||||
|
||||
Reference in New Issue
Block a user