patch chat and game invite

This commit is contained in:
2024-05-15 09:53:44 +02:00
parent f4b7a50269
commit 1ad9d0897b
8 changed files with 33 additions and 27 deletions

View File

@ -24,6 +24,8 @@ export default class Notice {
this._socket.onmessage = async message => {
const data = JSON.parse(message.data);
console.log(data);
if (data.type === 'friend_request') {
this.friend_request(data.author);
} else if (data.type === 'new_friend') {