Phone actions can be triggered from outside the phone via email

This commit is contained in:
J Francisco Rader committed 2021-03-30 02:08:53 -03:00
1 parent 901d7e95d3
commit 0a5a49b3d5
8 files changed
+67 -32

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ onNet(EmailEvents.FETCH_MESSAGE_ACTIONS, async ({ messageId }: { messageId: numb
const actions = await fetchMessageActions(messageId);
const phoneActions = mapUnformattedEmailPhoneActions(actions.phoneActions);
const externalActions = mapUnformattedEmailExternalActions(actions.externalActions);
emitNet(EmailEvents.FETCH_MESSAGE_ACTIONS_SUCCESS, { phoneActions, externalActions });
emitNet(EmailEvents.FETCH_MESSAGE_ACTIONS_SUCCESS, _source, { phoneActions, externalActions });
} catch (e) {
emailLogger.error(`Failed to fetch email message actions, ${e.message}`, {
source: _source,