mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #3040
Zetok Zalbavar (1): fix: increase faux offline message timeout
This commit is contained in:
commit
875f910fb6
|
@ -26,7 +26,7 @@
|
||||||
#include <QMutexLocker>
|
#include <QMutexLocker>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
const int OfflineMsgEngine::offlineTimeout = 2000;
|
const int OfflineMsgEngine::offlineTimeout = 20000;
|
||||||
QMutex OfflineMsgEngine::globalMutex;
|
QMutex OfflineMsgEngine::globalMutex;
|
||||||
|
|
||||||
OfflineMsgEngine::OfflineMsgEngine(Friend *frnd) :
|
OfflineMsgEngine::OfflineMsgEngine(Friend *frnd) :
|
||||||
|
|
|
@ -57,6 +57,10 @@ private:
|
||||||
QHash<int, int64_t> receipts;
|
QHash<int, int64_t> receipts;
|
||||||
QMap<int64_t, MsgPtr> undeliveredMsgs;
|
QMap<int64_t, MsgPtr> undeliveredMsgs;
|
||||||
|
|
||||||
|
// timeout after which faux offline messages get to be re-sent
|
||||||
|
// originally was 2s, but since that was causing lots of duplicated
|
||||||
|
// messages on receiving end, make qTox be more lazy about re-sending
|
||||||
|
// should be 20s
|
||||||
static const int offlineTimeout;
|
static const int offlineTimeout;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user