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: howtos/how-to-add-forwarding/README.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,7 @@ To run this example project, you need:
36
36
4. Select which messages can be forwarded, and who can do the forwarding. For the purposes of this guide, for **Which messages** select that the action should be available for `All messages`, and for **Action available to**, select `Everyone`.
37
37
3. Add styling to distinguish forwarded messages in your theme. The following steps add a subtle but noticeable right-pointed arrow and the label *Forwarded* at the top of the message body of messages that have been forwarded.
38
38
1. On the **Themes** page of your dashboard, select **Edit** for the theme that you’d like to use.
39
-
2. To identify user messages that have been forwarded, in `UserMessage`, add the following inside the `<template>` part of the code, for example at the top:
40
-
```html
41
-
<!-- Check for forwarded messages -->
42
-
<divt:if="{{ custom and custom.forwardedFrom }}"class="{{ 'forwarded' }}"></div>
43
-
```
44
-
3. Still in `UserMessage`, find the section where it adds the `MessageBody`, and replace it with the following, which adds `forwardedFrom="{{custom.forwardedFrom}}"` to the message body props if the message has the `forwardedFrom` custom property:
39
+
2. To identify user messages that have been forwarded, go to the `UserMessage` component. Inside the `<template>` part of the code, find the section where it adds the `MessageBody`, and replace it with the following, which adds `forwardedFrom="{{custom.forwardedFrom}}"` to the message body props if the message has the `forwardedFrom` custom property:
45
40
```html
46
41
<MessageBodyt:if="{{ custom and custom.forwardedFrom }}"
47
42
body="{{ body }}"
@@ -61,10 +56,9 @@ To run this example project, you need:
61
56
isLongEmailMessage="{{isLongEmailMessage}}"
62
57
darkenMenuArea="{{ darkenMenuArea }}"
63
58
referencedMessage="{{ referencedMessage }}"
64
-
forwardedFrom="null"
65
59
/>
66
60
```
67
-
4. Then, to style the message body of a forwarded message, go to `MessageBody` and add the following at the top inside the `<template>` section:
61
+
3. Then, to style the message body of a forwarded message, go to `MessageBody` and add the following at the top inside the `<template>` section:
0 commit comments