Archived
Message post and get by id + Deps fixed
This commit is contained in:
1 parent
da1310b9c8
commit
0ee3984262
11 files changed
+343
-132
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import { getMessageInformation, sendMessageToChannel } from "../services/messageService";
|
||||
|
||||
export async function fetchMessageData(id:string) {
|
||||
return await getMessageInformation(id);
|
||||
}
|
||||
|
||||
export async function sendMessage(
|
||||
channelId: string,
|
||||
userId: string,
|
||||
content: string,
|
||||
token: string,
|
||||
repliedMessageId: string | null
|
||||
) {
|
||||
return await sendMessageToChannel(
|
||||
channelId,
|
||||
userId,
|
||||
content,
|
||||
token,
|
||||
repliedMessageId
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user