Skip to content

Commit 22fabfc

Browse files
committed
Update delete button description in documentation and modify CLEAR_MESSAGES case to preserve message history
1 parent 06301e2 commit 22fabfc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: docs/css-customization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ The frame that adds the "card styles" such as background-color or box-shadow.
14191419
```
14201420

14211421
- _webchat-delete-conversation-button_
1422-
The general delete button style.
1422+
The delete button style inside the chat options screen.
14231423

14241424
```CSS
14251425
[data-cognigy-webchat-root] .webchat-delete-conversation-button {

Diff for: src/webchat/store/messages/message-reducer.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ export const createMessageReducer = (getState: () => { config: ConfigState }) =>
308308
};
309309
}
310310
case CLEAR_MESSAGES: {
311-
return [];
311+
return {
312+
...state,
313+
messageHistory: [],
314+
};
312315
}
313316
default:
314317
return state;

0 commit comments

Comments
 (0)