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') {

View File

@ -24,7 +24,7 @@ class Channel {
this.messages.push(new Message(
this.channel,
data.author,
data.author_id,
data.content,
data.time,
));

View File

@ -16,7 +16,6 @@ export default class Channels {
return undefined;
const data = await response.json();
//console.log(data)
this.channel = new Channel(this.client, data.id, members_id, data.messages, reload);
}