Add support for "SPY" channel type: updated models, ChatService, and ChannelListComponent to handle SPY channels and their name mappings.
This commit is contained in:
@@ -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'};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user