feat: Add emoji and alot of other fixes
This commit is contained in:
@@ -9,6 +9,7 @@ import { RoomEntity } from '../entities/RoomEntity';
|
||||
import { ReactionEntity } from '../entities/ReactionEntity';
|
||||
import { BanEntity } from '../entities/BanEntity';
|
||||
import { AttachmentEntity } from '../entities/AttachmentEntity';
|
||||
import { CustomEmojiEntity } from '../entities/CustomEmojiEntity';
|
||||
import { ReactionPayload } from './types';
|
||||
import {
|
||||
relationRecordToRoomPayload,
|
||||
@@ -140,6 +141,20 @@ export function rowToAttachment(row: AttachmentEntity) {
|
||||
};
|
||||
}
|
||||
|
||||
export function rowToCustomEmoji(row: CustomEmojiEntity) {
|
||||
return {
|
||||
id: row.id,
|
||||
name: row.name,
|
||||
creatorUserId: row.creatorUserId,
|
||||
dataUrl: row.dataUrl,
|
||||
hash: row.hash,
|
||||
mime: row.mime,
|
||||
size: row.size,
|
||||
createdAt: row.createdAt,
|
||||
updatedAt: row.updatedAt
|
||||
};
|
||||
}
|
||||
|
||||
export function rowToBan(row: BanEntity) {
|
||||
return {
|
||||
oderId: row.oderId,
|
||||
|
||||
Reference in New Issue
Block a user