mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-11-04 14:57:45 +00:00
fix: CRITICAL log on check_notifications
This commit is contained in:
parent
0c3ed85fba
commit
47f53a2775
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ public class Tooth.InstanceAccount : API.Account, Streamable {
|
|||
.with_account (this)
|
||||
.then ((sess, msg) => {
|
||||
var root = network.parse (msg);
|
||||
if (!root.has_member("notifications")) return;
|
||||
var notifications = root.get_object_member ("notifications");
|
||||
last_read_id = int.parse (notifications.get_string_member_with_default ("last_read_id", "-1") );
|
||||
if (!passed_init_notifications) init_notifications();
|
||||
|
|
Loading…
Reference in a new issue