mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +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
|
||||
#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()
|
||||
|
|
Loading…
Add table
Reference in a new issue