1
0
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:
sudden6 2016-03-24 20:15:55 +01:00
commit 875f910fb6
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
2 changed files with 5 additions and 1 deletions

View File

@ -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) :

View File

@ -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;
}; };