fix: Improve plugin ui entry points, Fix chat scroll, fix notifications, fix user rights

This commit is contained in:
2026-05-17 16:09:16 +02:00
parent 8e3ccf4157
commit 8631290c01
35 changed files with 1560 additions and 619 deletions

View File

@@ -30,7 +30,7 @@ import {
import { v4 as uuidv4 } from 'uuid';
import { MessagesActions } from './messages.actions';
import { selectCurrentUser } from '../users/users.selectors';
import { selectCurrentRoom } from '../rooms/rooms.selectors';
import { selectCurrentRoom, selectSavedRooms } from '../rooms/rooms.selectors';
import { selectMessagesEntities } from './messages.selectors';
import { RealtimeSessionFacade } from '../../core/realtime';
import { DatabaseService } from '../../infrastructure/persistence';
@@ -457,12 +457,14 @@ export class MessagesEffects {
this.webrtc.onMessageReceived.pipe(
withLatestFrom(
this.store.select(selectCurrentUser),
this.store.select(selectCurrentRoom)
this.store.select(selectCurrentRoom),
this.store.select(selectSavedRooms)
),
mergeMap(([
event,
currentUser,
currentRoom
currentRoom,
savedRooms
]) => {
const ctx: IncomingMessageContext = {
db: this.db,
@@ -470,7 +472,8 @@ export class MessagesEffects {
attachments: this.attachments,
debugging: this.debugging,
currentUser: currentUser ?? null,
currentRoom
currentRoom,
savedRooms
};
return dispatchIncomingMessage(event, ctx).pipe(
@@ -502,12 +505,14 @@ export class MessagesEffects {
this.webrtc.onSignalingMessage.pipe(
withLatestFrom(
this.store.select(selectCurrentUser),
this.store.select(selectCurrentRoom)
this.store.select(selectCurrentRoom),
this.store.select(selectSavedRooms)
),
mergeMap(([
event,
currentUser,
currentRoom
currentRoom,
savedRooms
]) => {
if (event.type !== 'chat_message') {
return EMPTY;
@@ -519,7 +524,8 @@ export class MessagesEffects {
attachments: this.attachments,
debugging: this.debugging,
currentUser: currentUser ?? null,
currentRoom
currentRoom,
savedRooms
};
return dispatchIncomingMessage({