mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-27 04:16:25 -08:00
fix local message feedback
This commit is contained in:
1 file changed
+4
-4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user