not sking messagesTagsList permission for thunderbird 115. see #281
This commit is contained in:
parent
e1d97cfc5c
commit
3313e9cd45
2 changed files with 5 additions and 7 deletions
|
|
@ -110,12 +110,7 @@ export class mzta_Menus {
|
||||||
let chatgpt_lang = await taPromptUtils.getDefaultLang(curr_prompt);
|
let chatgpt_lang = await taPromptUtils.getDefaultLang(curr_prompt);
|
||||||
|
|
||||||
let fullPrompt = '';
|
let fullPrompt = '';
|
||||||
let tags_full_list = '';
|
let tags_full_list = await getTagsList();
|
||||||
|
|
||||||
// without the tags related permissions, we can't get the tags list
|
|
||||||
if(await browser.permissions.contains({permissions: ['messagesTagsList']})){
|
|
||||||
tags_full_list = await getTagsList();
|
|
||||||
}
|
|
||||||
|
|
||||||
let curr_messages = null;
|
let curr_messages = null;
|
||||||
switch(tabs[0].type){
|
switch(tabs[0].type){
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,10 @@ export function generateCallID(length = 10) {
|
||||||
export async function getTagsList(){
|
export async function getTagsList(){
|
||||||
let messageTags = {};
|
let messageTags = {};
|
||||||
if(await isThunderbird128OrGreater()) {
|
if(await isThunderbird128OrGreater()) {
|
||||||
messageTags = await browser.messages.tags.list();
|
// without the tags related permissions, we can't get the tags list
|
||||||
|
if(await browser.permissions.contains({permissions: ['messagesTagsList']})){
|
||||||
|
messageTags = await browser.messages.tags.list();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
messageTags = await browser.messages.listTags();
|
messageTags = await browser.messages.listTags();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue