Fix usernames for bots
This commit is contained in:
parent
db88b09ba5
commit
66ae839318
2
app.js
2
app.js
@ -170,7 +170,7 @@ function handleIncomingMessage(messageObj) {
|
||||
console.log('Received message:', messageObj); // Debugging log
|
||||
|
||||
if (messageObj.type === 'icon') {
|
||||
const username = messageObj.username;
|
||||
const username = messageObj.name;
|
||||
if (messageObj.avatar) {
|
||||
try {
|
||||
const avatarBuffer = b4a.from(messageObj.avatar, 'base64');
|
||||
|
@ -10,7 +10,7 @@ class Message {
|
||||
toJson() {
|
||||
return {
|
||||
type: this.type,
|
||||
username: this.peerName,
|
||||
name: this.peerName,
|
||||
avatar: this.peerAvatar,
|
||||
topic: this.topic,
|
||||
timestamp: this.timestamp
|
||||
|
Loading…
Reference in New Issue
Block a user