@@ -98,6 +98,7 @@ export namespace Bm {
98
98
export type PgpBlockRetry = { frameId : string ; messageSender : Dest } ;
99
99
export type PgpBlockReady = { frameId : string ; messageSender : Dest } ;
100
100
export type ThunderbirdOpenPassphraseDialog = { acctEmail : string ; longids : string } ;
101
+ export type ThunderbirdAttachmentDownload = { attachment : messenger . messages . MessageAttachment } ;
101
102
102
103
export namespace Res {
103
104
export type GetActiveTabInfo = {
@@ -114,7 +115,7 @@ export namespace Bm {
114
115
export type ExpirationCacheGet < V > = Promise < V | undefined > ;
115
116
export type ExpirationCacheSet = Promise < void > ;
116
117
export type ExpirationCacheDeleteExpired = Promise < void > ;
117
- export type ThunderbirdGetActiveTabInfo = number | undefined ;
118
+ export type ThunderbirdAttachmentDownload = Promise < void > ;
118
119
export type ThunderbirdGetCurrentUser = string | undefined ;
119
120
export type ThunderbirdMsgGet = { attachments : messenger . messages . MessageAttachment [ ] ; messagePart : messenger . messages . MessagePart } ;
120
121
export type ThunderbirdOpenPassphraseDialog = Promise < void > ;
@@ -135,7 +136,7 @@ export namespace Bm {
135
136
| ExpirationCacheDeleteExpired
136
137
| AjaxGmailAttachmentGetChunk
137
138
| ConfirmationResult
138
- | ThunderbirdGetActiveTabInfo
139
+ | ThunderbirdAttachmentDownload
139
140
| ThunderbirdMsgGet ;
140
141
}
141
142
@@ -177,6 +178,7 @@ export namespace Bm {
177
178
| PgpBlockReady
178
179
| PgpBlockRetry
179
180
| ConfirmationResult
181
+ | ThunderbirdAttachmentDownload
180
182
| ThunderbirdOpenPassphraseDialog
181
183
| Ajax ;
182
184
@@ -241,8 +243,8 @@ export class BrowserMsg {
241
243
BrowserMsg . sendAwait ( undefined , 'expirationCacheSet' , bm , true ) as Promise < Bm . Res . ExpirationCacheSet > ,
242
244
expirationCacheDeleteExpired : ( bm : Bm . ExpirationCacheDeleteExpired ) =>
243
245
BrowserMsg . sendAwait ( undefined , 'expirationCacheDeleteExpired' , bm , true ) as Promise < Bm . Res . ExpirationCacheDeleteExpired > ,
244
- thunderbirdGetActiveTabInfo : ( ) =>
245
- BrowserMsg . sendAwait ( undefined , 'thunderbirdGetActiveTabInfo ' , undefined , true ) as Promise < Bm . Res . ThunderbirdGetActiveTabInfo > ,
246
+ thunderbirdAttachmentDownload : ( bm : Bm . ThunderbirdAttachmentDownload ) =>
247
+ BrowserMsg . sendAwait ( undefined , 'thunderbirdAttachmentDownload ' , bm , true ) as Promise < Bm . Res . ThunderbirdAttachmentDownload > ,
246
248
thunderbirdGetCurrentUser : ( ) =>
247
249
BrowserMsg . sendAwait ( undefined , 'thunderbirdGetCurrentUser' , undefined , true ) as Promise < Bm . Res . ThunderbirdGetCurrentUser > ,
248
250
thunderbirdMsgGet : ( ) => BrowserMsg . sendAwait ( undefined , 'thunderbirdMsgGet' , undefined , true ) as Promise < Bm . Res . ThunderbirdMsgGet > ,
0 commit comments