Add support for "SPY" channel type: updated models, ChatService, and ChannelListComponent to handle SPY channels and their name mappings.

This commit is contained in:
2026-08-01 22:01:59 +02:00
parent ed942d5ec5
commit 73ea715b01
4 changed files with 8 additions and 7 deletions
@@ -126,11 +126,12 @@ export class ChatService implements OnDestroy {
}
if (message.type === 'MSG') {
const uuid = this.authService.getUuid();
if (message.uuid === uuid) {
return null;
if (message.receiver === uuid) {
this.updateUserNameMap(message.uuid)
return {name: message.uuid, type: 'DM'};
}
this.updateUserNameMap(message.receiver)
return {name: message.receiver, type: 'DM'};
return {name: message.receiver, type: 'SPY'};
}
return {name: message.server, type: 'SERVER'};
}