@@ -83,7 +83,7 @@ $filters = [
83
83
``` php
84
84
$appId = 'YOUR_APP_ID';
85
85
$secretKey = 'YOUR_SECRET_KEY';
86
- $talkJSClient = new TalkJSClient($appId, $secretKey)
86
+ $talkJSClient = new TalkJSClient($appId, $secretKey);
87
87
```
88
88
89
89
### Users
@@ -158,6 +158,13 @@ $talkJSClient->conversations->leave('my_conversation_id', 'my_user_id');
158
158
$talkJSClient->conversations->delete('my_conversation_id');
159
159
```
160
160
161
+ - Update participation settings (notifications and read/write access)
162
+ ``` php
163
+ $notify = true; // Boolean, default true
164
+ $access = 'ReadWrite'; // ReadWrite or Read, default ReadWrite
165
+ $talkJSClient->conversations->updateParticipation('my_conversation_id', 'my_user_id', $notify, $access);
166
+ ```
167
+
161
168
### Messages
162
169
163
170
For more information on custom data and filters, please refer to the TalkJS documentation linked above.
@@ -179,7 +186,7 @@ $talkJSClient->messages->get('my_conversation_id', $filters);
179
186
180
187
- Find specific message in a conversation
181
188
``` php
182
- $talkJSClient->messages->find('my_conversation_id', 'message_id', $filters );
189
+ $talkJSClient->messages->find('my_conversation_id', 'message_id');
183
190
```
184
191
185
192
- Post a system message, returns a ` MessageCreated ` event class with input data and ` type ` of ` SystemMessage `
0 commit comments