remove member of a discussion

This commit is contained in:
2024-03-29 14:30:46 +01:00
parent 729d1ad504
commit 2bdffe6ab4
4 changed files with 38 additions and 3 deletions

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,