mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
chore: refactor settings
This commit is contained in:
@@ -171,8 +171,8 @@ void Polls::sendVotes(
|
||||
hideSending();
|
||||
_session->updates().applyUpdates(result);
|
||||
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (!settings->sendReadMessages && settings->markReadAfterAction && item)
|
||||
const auto& settings = AyuSettings::getInstance();
|
||||
if (!settings.sendReadMessages && settings.markReadAfterAction && item)
|
||||
{
|
||||
readHistory(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user