Display a message about pads deleted from the server

This commit is contained in:
yflory
2018-01-26 12:26:58 +01:00
parent 7f21b8a566
commit 86144eda22
4 changed files with 10 additions and 2 deletions

View File

@@ -102,8 +102,8 @@ define([
// Push channels owned by someone else or channel that should have expired
// because of the expiration time
if ((data.owners && data.owners.indexOf(edPublic) === -1) ||
data.expire < (+new Date())) {
if ((data.owners && data.owners.length && data.owners.indexOf(edPublic) === -1) ||
(data.expire && data.expire < (+new Date()))) {
list.push(Hash.hrefToHexChannelId(data.href));
}
});