Chatwoot/app/javascript/widget/store/modules/messageV2/getters.js

8 lines
183 B
JavaScript
Raw Normal View History

2021-09-16 06:52:05 +00:00
export const getters = {
uIFlags: $state => $state.uiFlags,
messageById: _state => messageId => {
const message = _state.messages.byId[messageId];
return message;
},
2021-09-16 06:52:05 +00:00
};