feat: Add emoji and alot of other fixes

This commit is contained in:
2026-06-05 05:40:18 +02:00
parent ca069e2f61
commit 6865147e8f
72 changed files with 3885 additions and 413 deletions

View File

@@ -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,