summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ChatService.ts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-04-03 15:28:10 +0900
committerGitHub <noreply@github.com>2025-04-03 15:28:10 +0900
commite07bb1dcbce6eaa2bfe157a6c9f1361dbf9aa280 (patch)
tree1d9f9e6d6450caa717e83ca8fc0eadf09b413129 /packages/backend/src/core/ChatService.ts
parentperf(frontend): avoid main thread scroll repaint (diff)
downloadsharkey-e07bb1dcbce6eaa2bfe157a6c9f1361dbf9aa280.tar.gz
sharkey-e07bb1dcbce6eaa2bfe157a6c9f1361dbf9aa280.tar.bz2
sharkey-e07bb1dcbce6eaa2bfe157a6c9f1361dbf9aa280.zip
fix: チャット周りの修正 (#15741)
* fix(misskey-js): チャットのChannel型定義を追加 * fix(backend); canChatで塞いでいない書き込み系のAPIを塞ぐ * fix(frontend): チャット周りのフロントエンド型修正 * lint fix * fix broken lockfile * fix * refactor * wip * wip * wip * clean up --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/core/ChatService.ts')
-rw-r--r--packages/backend/src/core/ChatService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/ChatService.ts b/packages/backend/src/core/ChatService.ts
index 6194f624b1..3984cefc80 100644
--- a/packages/backend/src/core/ChatService.ts
+++ b/packages/backend/src/core/ChatService.ts
@@ -99,7 +99,7 @@ export class ChatService {
text?: string | null;
file?: MiDriveFile | null;
uri?: string | null;
- }): Promise<Packed<'ChatMessageLite'>> {
+ }): Promise<Packed<'ChatMessageLiteFor1on1'>> {
if (fromUser.id === toUser.id) {
throw new Error('yourself');
}
@@ -210,7 +210,7 @@ export class ChatService {
text?: string | null;
file?: MiDriveFile | null;
uri?: string | null;
- }): Promise<Packed<'ChatMessageLite'>> {
+ }): Promise<Packed<'ChatMessageLiteForRoom'>> {
const memberships = (await this.chatRoomMembershipsRepository.findBy({ roomId: toRoom.id })).map(m => ({
userId: m.userId,
isMuted: m.isMuted,