fix local message feedback

This commit is contained in:
7w1 committed 2026-04-29 21:51:38 -05:00
1 parent 7e317f1d30
commit 90878d8fb3
1 file changed
+4 -4
+4 -4
View File
@@ -1,10 +1,10 @@
import type { Room } from '$types/matrix-sdk';
import { DuplicateStrategy, MatrixEvent } from '$types/matrix-sdk';
import type { Room } from "$types/matrix-sdk";
import { DuplicateStrategy, MatrixEvent } from "$types/matrix-sdk";
export function sendFeedback(msg: string, room: Room, userId: string) {
const localNotice = new MatrixEvent({
type: 'm.room_message',
content: { msgtype: 'm.notice', body: msg },
type: "m.room.message",
content: { msgtype: "m.notice", body: msg },
event_id: `~sable-feedback-${Date.now()}`,
room_id: room.roomId,
sender: userId,