mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 02:07:54 +00:00
feat: per-account ghost & lock ghost features & refactor
This commit is contained in:
@@ -326,7 +326,7 @@ Session::Session(not_null<Main::Session*> session)
|
||||
|
||||
// AyuGram disableStories
|
||||
const auto &settings = AyuSettings::getInstance();
|
||||
if (!settings.disableStories) {
|
||||
if (!settings.disableStories()) {
|
||||
_stories->loadMore(Data::StorySourcesList::NotHidden);
|
||||
}
|
||||
});
|
||||
@@ -2681,7 +2681,7 @@ void Session::updateEditedMessage(const MTPMessage &data) {
|
||||
goto proceed;
|
||||
}
|
||||
edit = HistoryMessageEdition(_session, data.c_message());
|
||||
if (settings.saveMessagesHistory && !existing->isLocal() && !existing->author()->isSelf() && !edit.isEditHide) {
|
||||
if (settings.saveMessagesHistory() && !existing->isLocal() && !existing->author()->isSelf() && !edit.isEditHide) {
|
||||
const auto msg = existing->originalText();
|
||||
|
||||
if (edit.textWithEntities == msg || msg.empty()) {
|
||||
@@ -2837,7 +2837,7 @@ void Session::checkTTLs() {
|
||||
_ttlCheckTimer.cancel();
|
||||
const auto now = base::unixtime::now();
|
||||
|
||||
if (settings.saveDeletedMessages) {
|
||||
if (settings.saveDeletedMessages()) {
|
||||
auto toBeRemoved = ranges::views::take_while(
|
||||
_ttlMessages,
|
||||
[now](const auto &pair) {
|
||||
|
||||
Reference in New Issue
Block a user