I would like the addon to reload only when a new thread is selected, instead of reloading for every different message.
"contextualTriggers": [{
"unconditional": {
},
"onTriggerFunction": "buildAddOn"
}]
I would like the addon to reload only when a new thread is selected, instead of reloading for every different message.
"contextualTriggers": [{
"unconditional": {
},
"onTriggerFunction": "buildAddOn"
}]
Copyright © 2021 Jogjafile Inc.
You can use CacheService to track the ID of the current Gmail thread inside the buildAddon method. If the thread Id changes, call the main method else skip.