@ -1,17 +0,0 @@
|
||||
import { Map as ImmutableMap, Record as ImmutableRecord, fromJS } from 'immutable';
|
||||
|
||||
import type { Account, EmbeddedEntity } from 'soapbox/types/entities';
|
||||
|
||||
const ChatRecord = ImmutableRecord({
|
||||
account: null as EmbeddedEntity<Account>,
|
||||
id: '',
|
||||
unread: 0,
|
||||
last_message: '' as string || null,
|
||||
updated_at: '',
|
||||
});
|
||||
|
||||
const normalizeChat = (chat: Record<string, any>) => ChatRecord(
|
||||
ImmutableMap(fromJS(chat)),
|
||||
);
|
||||
|
||||
export { ChatRecord, normalizeChat };
|
||||
@ -2,7 +2,6 @@ export { AccountRecord, FieldRecord, normalizeAccount } from './account';
|
||||
export { AdminAccountRecord, normalizeAdminAccount } from './admin-account';
|
||||
export { AdminReportRecord, normalizeAdminReport } from './admin-report';
|
||||
export { AttachmentRecord, normalizeAttachment } from './attachment';
|
||||
export { ChatRecord, normalizeChat } from './chat';
|
||||
export { ChatMessageRecord, normalizeChatMessage } from './chat-message';
|
||||
export { EmojiRecord, normalizeEmoji } from './emoji';
|
||||
export { FilterRecord, normalizeFilter } from './filter';
|
||||
|
||||
Reference in New Issue
Block a user