mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-31 16:40:45 +01:00
Finally fix wrong unread count
This commit is contained in:
parent
a0eb876c7b
commit
f00aef78bd
2 changed files with 4 additions and 4 deletions
|
@ -83,7 +83,7 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 8
|
minSdkVersion 8
|
||||||
targetSdkVersion 19
|
targetSdkVersion 19
|
||||||
versionCode 276
|
versionCode 278
|
||||||
versionName "1.6.0"
|
versionName "1.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1032,7 +1032,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
||||||
public void run(TLObject response, TLRPC.TL_error error) {
|
public void run(TLObject response, TLRPC.TL_error error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
}, true, RPCRequest.RPCRequestClassGeneric | RPCRequest.RPCRequestClassFailOnServerErrors);
|
||||||
ConnectionsManager.getInstance().bindRequestToGuid(reqId, classGuid);
|
ConnectionsManager.getInstance().bindRequestToGuid(reqId, classGuid);
|
||||||
} else {
|
} else {
|
||||||
int encId = (int)(dialog_id >> 32);
|
int encId = (int)(dialog_id >> 32);
|
||||||
|
@ -1048,7 +1048,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
||||||
public void run(TLObject response, TLRPC.TL_error error) {
|
public void run(TLObject response, TLRPC.TL_error error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
}, true, RPCRequest.RPCRequestClassGeneric | RPCRequest.RPCRequestClassFailOnServerErrors);
|
||||||
ConnectionsManager.getInstance().bindRequestToGuid(reqId, classGuid);
|
ConnectionsManager.getInstance().bindRequestToGuid(reqId, classGuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1535,7 +1535,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
||||||
req.max_id = max_positive_id;
|
req.max_id = max_positive_id;
|
||||||
req.offset = offset;
|
req.offset = offset;
|
||||||
if (offset == 0) {
|
if (offset == 0) {
|
||||||
NotificationsController.getInstance().processReadMessages(null, dialog_id, 0, max_id);
|
NotificationsController.getInstance().processReadMessages(null, dialog_id, 0, max_positive_id);
|
||||||
MessagesStorage.getInstance().processPendingRead(dialog_id, max_positive_id, max_date, false);
|
MessagesStorage.getInstance().processPendingRead(dialog_id, max_positive_id, max_date, false);
|
||||||
MessagesStorage.getInstance().storageQueue.postRunnable(new Runnable() {
|
MessagesStorage.getInstance().storageQueue.postRunnable(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue