Please try now.
I'm not sure if this is exactly what OP needs though. It adds a permission for a user to create a group and assign it to a category. Not exactly the same thing as approval.
I tried to user Write API`s chat route /api/v1/users/<uid>/chats in order to chat with user using a bot. However every time when I am sending a message, it is creating a new chatroom. The POST operation onto /api/v1/users/<uid>/chats is creating a chat room & returning its id.
However I am not finding a way use this roomId in further messages. The only parameters accepted in /api/v1/users/<uid>/chats API are message, timestamp & quiet. How to continue chat in a previously created room?
No such function yet. Sorry.
Can it be achieved with some code changes in writeapi plugin? Could you help me with some starting point in code to achieve this?
I think so, I'll take a look.
Kinda got over-excited. Basically, just added a parameter
roomId to the existing route. If it exists, it posts to the existing room.
v5.0.1, thanks @yariplus !
@yariplus Thank you. This helps a lot.
Thanks @yariplus, I also found this very useful.
nice @yariplus Gonna be using this for my stuff
@yariplus thank you, this helped me a lot!
another question: is it possible somehow to set the chat-attribute 'unread' from true to false.
at the moment it only switches to false when i reply in the chat.