mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-27 21:23:15 +00:00
fix: segfault
This commit is contained in:
parent
f422b855a7
commit
5750f1fb03
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue