mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: increase faux offline message timeout
Should make problem with duplicated messages less common. Related to #2726.
This commit is contained in:
parent
990a50f1ca
commit
76d8e19320
|
@ -26,7 +26,7 @@
|
|||
#include <QMutexLocker>
|
||||
#include <QTimer>
|
||||
|
||||
const int OfflineMsgEngine::offlineTimeout = 2000;
|
||||
const int OfflineMsgEngine::offlineTimeout = 20000;
|
||||
QMutex OfflineMsgEngine::globalMutex;
|
||||
|
||||
OfflineMsgEngine::OfflineMsgEngine(Friend *frnd) :
|
||||
|
|
|
@ -57,6 +57,10 @@ private:
|
|||
QHash<int, int64_t> receipts;
|
||||
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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user