fix(profile): warning

This commit is contained in:
Evangelos Paterakis 2023-01-22 10:12:04 +02:00
parent 1479b00980
commit a980aeaee5
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 3 additions and 1 deletions

View File

@ -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();
});
})