use chat Id as channel, remove primary channels and namespaces

This commit is contained in:
marlon-erler
2026-09-26 14:12:26 +02:00
parent 87760b66d2
commit b3cb919a7d
14 changed files with 453 additions and 1637 deletions
@@ -20,7 +20,7 @@ export default class NotificationViewModel {
this.createNotification(message);
const currentChat =
this.chatListViewModel.selectedChat.value.chatModel
.unwrappedPrimaryChannel;
.id;
const currentPage =
this.chatListViewModel.selectedChat.value.selectedPage.value;
if (
@@ -41,7 +41,7 @@ export default class NotificationViewModel {
...this.chatListViewModel.chatViewModels.value.values(),
].find(
(chat) =>
chat.chatModel.unwrappedPrimaryChannel == notification.fullChannel,
chat.chatModel.id == notification.fullChannel,
);
if (!chat) return;
chat.open();
@@ -87,7 +87,7 @@ export default class NotificationViewModel {
// util
createNotification(message: ChatMessage): Notification {
const fullChannel = ChatModel.splitChannel(message.channel)[0];
const chat = this.chatListViewModel.stripNamespace(fullChannel);
const chat = this.chatListViewModel.getDisplayName(fullChannel);
return {
messageId: message.id,
chat,