Fix friend notification in friend log

This commit is contained in:
Natsumi
2022-03-13 20:00:45 +13:00
parent 7ead03e3ed
commit 4cb902d3f4
+1 -1
View File
@@ -10577,7 +10577,7 @@ speechSynthesis.getVoices();
API.getFriendStatus({ API.getFriendStatus({
userId: id userId: id
}).then((args) => { }).then((args) => {
if (args.json.isFriend && this.friendLog.has(id)) { if (args.json.isFriend && !this.friendLog.has(id)) {
var friendLogHistory = { var friendLogHistory = {
created_at: new Date().toJSON(), created_at: new Date().toJSON(),
type: 'Friend', type: 'Friend',