remove member of a discussion

This commit is contained in:
tonitch committed 2024-03-29 14:30:46 +01:00
1 parent 729d1ad504
commit 2bdffe6ab4
4 files changed
+38 -3

No files matched your search

+4
View File
@@ -27,6 +27,10 @@ export async function invite(id, regNo){
restPatch("/discussion/"+ id+ "/add", {regNo: parseInt(regNo)}).then(() => fetchDiscussion(id))
}
export async function removeMember(id, regNo){
restPatch("/discussion/"+ id+ "/remove", {regNo: parseInt(regNo)}).then(() => fetchDiscussion(id))
}
export async function sendMessage(id, content, responseId){
let data = {
content: content,