Improve messaging and dashboard reliability
This commit is contained in:
1 parent
345ec99348
commit
5a5a30a1d4
20 files changed
+406
-56
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
DeliveryOutboxRepository,
|
||||
MessagesRepository,
|
||||
PostsRepository,
|
||||
RecipientHistoryRepository,
|
||||
SuccessfulMessagesRepository,
|
||||
} from '../src/database/repositories.js';
|
||||
import { buildConversationState } from '../src/services/conversation-state.js';
|
||||
@@ -75,6 +76,8 @@ describe('account-bound domain repositories', () => {
|
||||
expect(messagesB.getByPostId('same-post')).toMatchObject({ id: messageB, message: 'from B' });
|
||||
expect(messagesA.hasSentTo('only-a')).toBe(true);
|
||||
expect(messagesB.hasSentTo('only-a')).toBe(false);
|
||||
const recipientHistory = new RecipientHistoryRepository(db);
|
||||
expect(recipientHistory.hasSentTo('ONLY-A')).toBe(true);
|
||||
expect(messagesA.getByChatRoomId('same-room')?.recipient).toBe('only-a');
|
||||
expect(messagesB.getByChatRoomId('same-room')).toBeUndefined();
|
||||
|
||||
|
||||
Reference in new issue
Block a user