I'm working on Gmail add-on that allows to start new draft/reply using email template. User can navigate to templates list and start new draft by clicking one of them (Decorated text widget). I'm wondering is there a way to set the navigation in add-on after draft was started. I would like to close templates menu and get the user back to previous page.
Tried to combine actions on widget like:
templateCard
.setComposeAction(
myComposeAction,
CardService.ComposedEmailType.STANDALONE_DRAFT)
.setOnClickAction(
myNavigationAction
)
But it doesn't work. Only compose action is running.