You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/bot/rest-api.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,7 +343,8 @@ All messages at once
343
343
*`{{msg_all_op_msg_content}}` - All operator messages in the chat. All messages without `[<date>] [<nick>]` prefix within each message.
344
344
*`{{msg_all_vis_msg_content}}` - All visitor messages in the chat. All messages without `[<date>] [<nick>]` prefix within each message.
345
345
*`{{msg_all_vis_since_transfer_content}}` - All visitor messages in the chat since operator took over the chat. All messages without `[<date>] [<nick>]` prefix within each message.
346
-
*`{{msg_all}}` - all chat messages.
346
+
*`{{msg_all_since_transfer_content_date_nick}}` - All visitor messages in the chat since operator took over the chat. All messages with `[<date>] [<nick>]` prefix within each message.
347
+
*`{{msg_all}}` - all chat messages. All messages with `[<date>] [<nick>]` and meta data including whisper messages.
347
348
*`{{msg_all_conversation}}` - all chat messages without system and whisper messages.
348
349
*`{{msg_items}}` - all chat messages objects encoded in JSON. Just do `json_decode` on passed variable
349
350
*`{{msg_all_html}}` - all chat messages rendered as HTML. You might need to style classes.
Copy file name to clipboardExpand all lines: docs/chat/chat.md
+23-10Lines changed: 23 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,22 @@ You can also click right mouse button and see context menu related to a message.
35
35
*`Quote` - will append message area with quoted message text.
36
36
* General `lhchat,use` permission is required.
37
37
* Chat must be not closed
38
-
*`Edit` - will be visible if
39
-
* Chat is not closed
40
-
* Selected message is not the last one operator message and operator has `lhchat,editpreviousall` permission
41
-
* Selected message is visitor message and operator has `lhchat,editpreviouvis` permission
42
-
* Selected message is the last operator message and operator has `lhchat,editprevious` permission
38
+
*`Edit` - will be visible if
39
+
* Chat is not closed
40
+
* Selected message is not the last operator message and operator has `lhchat,editpreviousall` permission
41
+
* Selected message is visitor message and operator has `lhchat,editpreviouvis` permission
42
+
* Selected message is the last operator message and operator has `lhchat,editprevious` permission
43
+
* Edit history will be saved if operator does not have permission `'lhchat','no_edit_history'` or he is editing not his own message.
44
+
* Two events wil be dispatched on successful message edit
45
+
*`chat.message_updated` - General messages was updated event
46
+
*`chat.message_updated_admin` - Event indicates that operator has an updated message manually. Should be listened if for example you want to add a subject to chat to indicate that it has a message modified by operator.
*`Remove` - Removes messages permanently from database
44
55
* To remove `Visitor` message `lhchat,removemsgvi` permission is required
45
56
* To remove `Operator` or `Bot` message `lhchat,removemsgop` permission is required. It will allow to remove message independently who wrote this message.
@@ -354,13 +365,15 @@ Shows mail sending to visitor modal window. 
354
365
355
366

356
367
357
-
Required permissions
368
+
This option can be seen if
358
369
359
-
> 'lhchat','sendmail'
370
+
* Operator has permission to `'lhmailconv','use_admin'` and there is a mailbox defined with same mail as in the department.
360
371
361
-
:::tip
362
-
This option can be [disabled by department](department/department.md#miscellaneous).
363
-
:::
372
+
OR
373
+
374
+
* Operator has permission `'lhchat','sendmail'` and `Hide send e-mail button for operators in chat window` is not checked in [department settings](department/department.md#miscellaneous).
375
+
* We will use mail module if that option is activated in `Mail general options` in mail module.
376
+
* If above that option is not activated, we will use the default send mail a modal window.
0 commit comments