fix: segfault

This commit is contained in:
Evangelos Paterakis 2022-11-13 20:02:34 +02:00
parent f422b855a7
commit 5750f1fb03
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public class Tootle.InstanceAccount : API.Account, Streamable {
.then ((sess, msg) => {
var root = network.parse (msg);
var notifications = root.get_object_member ("notifications");
last_read_id = int.parse (notifications.get_string_member ("last_read_id") );
last_read_id = int.parse (notifications.get_string_member_with_default ("last_read_id", "0") );
})
.exec ();
}