From a980aeaee510bcd9248579069d65b866a999bcb9 Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Sun, 22 Jan 2023 10:12:04 +0200 Subject: [PATCH] fix(profile): warning --- src/Views/Profile.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Views/Profile.vala b/src/Views/Profile.vala index b23ae9a..738faba 100644 --- a/src/Views/Profile.vala +++ b/src/Views/Profile.vala @@ -50,7 +50,9 @@ public class Tooth.Views.Profile : Views.Timeline { .then ((sess, msg) => { Network.parse_array (msg, node => { var e = entity_cache.lookup_or_insert (node, typeof (API.Status)); - (e as API.Status).pinned = true; + var e_status = e as API.Status; + if (e_status != null) e_status.pinned = true; + model.append (e); //FIXME: use splice(); }); })