Fix friend log notify on first run

This commit is contained in:
Natsumi
2021-07-28 22:23:10 +12:00
parent a502db185c
commit 5604976864
+2 -3
View File
@@ -7187,7 +7187,6 @@ speechSynthesis.getVoices();
}; };
this.friendLogTable.data.push(friendLogHistory); this.friendLogTable.data.push(friendLogHistory);
database.addFriendLogHistory(friendLogHistory); database.addFriendLogHistory(friendLogHistory);
var friendLogCurrent = { var friendLogCurrent = {
userId: id, userId: id,
displayName: ctx.displayName, displayName: ctx.displayName,
@@ -7195,8 +7194,8 @@ speechSynthesis.getVoices();
}; };
this.friendLog.set(id, friendLogCurrent); this.friendLog.set(id, friendLogCurrent);
database.setFriendLogCurrent(friendLogCurrent); database.setFriendLogCurrent(friendLogCurrent);
this.notifyMenu('friendLog');
} }
this.notifyMenu('friendLog');
}; };
$app.methods.deleteFriendship = function (id) { $app.methods.deleteFriendship = function (id) {
@@ -7287,9 +7286,9 @@ speechSynthesis.getVoices();
}; };
this.friendLog.set(ref.id, friendLogCurrent); this.friendLog.set(ref.id, friendLogCurrent);
database.setFriendLogCurrent(friendLogCurrent); database.setFriendLogCurrent(friendLogCurrent);
this.notifyMenu('friendLog');
} }
ctx.trustLevel = ref.$trustLevel; ctx.trustLevel = ref.$trustLevel;
this.notifyMenu('friendLog');
} }
}; };