mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-17 04:23:55 +02:00
13 lines
No EOL
378 B
C++
13 lines
No EOL
378 B
C++
#include "ayu_state.h"
|
|
|
|
namespace AyuState {
|
|
void setAllowSendReadPacket(bool val, int resetAfter) {
|
|
allowSendReadPacket.val = val;
|
|
allowSendReadPacket.resetAfter = resetAfter;
|
|
}
|
|
|
|
bool getAllowSendPacket() {
|
|
auto settings = &AyuSettings::getInstance();
|
|
return settings->sendReadPackets || processVariable(allowSendReadPacket);
|
|
}
|
|
} |