refactor: stricter domain: chat
This commit is contained in:
@@ -37,7 +37,7 @@ import { DatabaseService } from '../../infrastructure/persistence';
|
||||
import { reportDebuggingError, trackDebuggingTaskFailure } from '../../core/helpers/debugging-helpers';
|
||||
import { DebuggingService } from '../../core/services';
|
||||
import { AttachmentFacade } from '../../domains/attachment';
|
||||
import { LinkMetadataService } from '../../domains/chat/application/link-metadata.service';
|
||||
import { LinkMetadataService } from '../../domains/chat/application/services/link-metadata.service';
|
||||
import { TimeSyncService } from '../../core/services/time-sync.service';
|
||||
import {
|
||||
DELETED_MESSAGE_CONTENT,
|
||||
@@ -45,7 +45,7 @@ import {
|
||||
Reaction
|
||||
} from '../../shared-kernel';
|
||||
import { hydrateMessages } from './messages.helpers';
|
||||
import { canEditMessage } from '../../domains/chat/domain/message.rules';
|
||||
import { canEditMessage } from '../../domains/chat/domain/rules/message.rules';
|
||||
import { resolveRoomPermission } from '../../domains/access-control';
|
||||
import { dispatchIncomingMessage, IncomingMessageContext } from './messages-incoming.handlers';
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*/
|
||||
import { Message } from '../../shared-kernel';
|
||||
import { DatabaseService } from '../../infrastructure/persistence';
|
||||
import { getMessageTimestamp, normaliseDeletedMessage } from '../../domains/chat/domain/message.rules';
|
||||
import type { InventoryItem } from '../../domains/chat/domain/message-sync.rules';
|
||||
import { getMessageTimestamp, normaliseDeletedMessage } from '../../domains/chat/domain/rules/message.rules';
|
||||
import type { InventoryItem } from '../../domains/chat/domain/rules/message-sync.rules';
|
||||
|
||||
// Re-export domain logic so existing callers keep working
|
||||
export {
|
||||
@@ -13,7 +13,7 @@ export {
|
||||
getLatestTimestamp,
|
||||
normaliseDeletedMessage,
|
||||
canEditMessage
|
||||
} from '../../domains/chat/domain/message.rules';
|
||||
} from '../../domains/chat/domain/rules/message.rules';
|
||||
export {
|
||||
INVENTORY_LIMIT,
|
||||
CHUNK_SIZE,
|
||||
@@ -23,8 +23,8 @@ export {
|
||||
FULL_SYNC_LIMIT,
|
||||
chunkArray,
|
||||
findMissingIds
|
||||
} from '../../domains/chat/domain/message-sync.rules';
|
||||
export type { InventoryItem } from '../../domains/chat/domain/message-sync.rules';
|
||||
} from '../../domains/chat/domain/rules/message-sync.rules';
|
||||
export type { InventoryItem } from '../../domains/chat/domain/rules/message-sync.rules';
|
||||
|
||||
/** Hydrates a single message with its reactions from the database. */
|
||||
export async function hydrateMessage(
|
||||
|
||||
Reference in New Issue
Block a user