cleanup code

This commit is contained in:
pypy
2020-01-13 22:53:01 +09:00
parent 129259cd1e
commit 727a552083
+3 -2
View File
@@ -3885,7 +3885,9 @@ CefSharp.BindObjectAsync(
API.$on('USER:UPDATE', function (args) { API.$on('USER:UPDATE', function (args) {
var { ref, props } = args; var { ref, props } = args;
if ($app.friends.get(ref.id)) { if ($app.friends.has(ref.id) === false) {
return;
}
if (props.location) { if (props.location) {
if (props.location[0] === 'offline') { if (props.location[0] === 'offline') {
$app.addFeed('Offline', ref, { $app.addFeed('Offline', ref, {
@@ -3934,7 +3936,6 @@ CefSharp.BindObjectAsync(
] ]
}); });
} }
}
}); });
var saveFeedTimer = null; var saveFeedTimer = null;