feat: Allow agents/admins to copy the link to a message (#5912)

This commit is contained in:
Pranav Raj S
2023-03-26 22:58:42 -07:00
committed by GitHub
parent 1e8881577a
commit 6000028f64
9 changed files with 107 additions and 33 deletions

View File

@@ -86,15 +86,15 @@ const actions = {
}
},
async setActiveChat({ commit, dispatch }, data) {
async setActiveChat({ commit, dispatch }, { data, after }) {
commit(types.SET_CURRENT_CHAT_WINDOW, data);
commit(types.CLEAR_ALL_MESSAGES_LOADED);
if (data.dataFetched === undefined) {
try {
await dispatch('fetchPreviousMessages', {
conversationId: data.id,
after,
before: data.messages[0].id,
conversationId: data.id,
});
Vue.set(data, 'dataFetched', true);
} catch (error) {