turms icon indicating copy to clipboard operation
turms copied to clipboard

How to accpet/refuse group invitation, when receive a group invitation

Open weishirongzhen opened this issue 1 year ago • 2 comments

group config set below image group owner send a invitation by call createInvitation() and send to a user1, user1 can call queryInvitations to get this invitation, how user1 can accept or refuse this invitation? can't find api to call

and same issue about joinRequest, if a group Join Strategy is JOIN_REQUEST, when user1 send JOIN_REQUEST, how group owner or manager can approve user's JOIN_REQUEST?

weishirongzhen avatar Jan 26 '24 02:01 weishirongzhen

Working on this. I will @you once the code and doc are done.

JamesChenX avatar Jan 27 '24 23:01 JamesChenX

Hi @weishirongzhen, a big update has been committed. You can use groupService.replyJoinRequest or groupService.replyInvitation to accept/deny them. For API details, I have written thousands of lines of comments for client service API, you can pull the latest code of turms clients to have a look.


IMPORTANT: If you want to use the latest Turms servers or Turms clients (just use the latest code in the develop or master branch, or images), you need to use the latest Turms servers, clients, and plugins consistently. In other words, it will make you trouble if you use the latest Turms servers, but use old Turms clients.

JamesChenX avatar Feb 10 '24 00:02 JamesChenX