mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-09-28 13:43:00 +00:00
fix(profile): warning
This commit is contained in:
parent
1479b00980
commit
a980aeaee5
|
@ -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();
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue