Fix notification seen

This commit is contained in:
Natsumi
2021-05-30 22:50:11 +12:00
parent 07a0658fee
commit b765668402
+5 -2
View File
@@ -3251,10 +3251,10 @@ speechSynthesis.getVoices();
}); });
break; break;
case 'notification-see': case 'see-notification':
this.$emit('NOTIFICATION:SEE', { this.$emit('NOTIFICATION:SEE', {
params: { params: {
notificationId: content.notificationId notificationId: content
} }
}); });
break; break;
@@ -3437,7 +3437,10 @@ speechSynthesis.getVoices();
socket.onmessage = ({ data }) => { socket.onmessage = ({ data }) => {
try { try {
var json = JSON.parse(data); var json = JSON.parse(data);
try {
json.content = JSON.parse(json.content); json.content = JSON.parse(json.content);
} catch (err) {
}
if ($app.debugWebSocket) { if ($app.debugWebSocket) {
var displayName = ''; var displayName = '';
if (this.cachedUsers.has(json.content.userId)) { if (this.cachedUsers.has(json.content.userId)) {