Fix View Once Video, fix Permissions Popup
* Ensure we're ready to handle incoming View Once messages * Ensure that permissions popup initializes fully
This commit is contained in:
parent
483b2b3ff6
commit
edba3a522a
3 changed files with 7 additions and 2 deletions
|
@ -107,7 +107,7 @@
|
||||||
);
|
);
|
||||||
this.listenTo(
|
this.listenTo(
|
||||||
this.messageCollection,
|
this.messageCollection,
|
||||||
'add remove destroy',
|
'add remove destroy content-changed',
|
||||||
this.debouncedUpdateLastMessage
|
this.debouncedUpdateLastMessage
|
||||||
);
|
);
|
||||||
this.listenTo(this.messageCollection, 'sent', this.updateLastMessage);
|
this.listenTo(this.messageCollection, 'sent', this.updateLastMessage);
|
||||||
|
|
|
@ -892,7 +892,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const firstAttachment = attachments[0];
|
const firstAttachment = attachments[0];
|
||||||
if (!GoogleChrome.isImageTypeSupported(firstAttachment.contentType)) {
|
if (
|
||||||
|
!GoogleChrome.isImageTypeSupported(firstAttachment.contentType) &&
|
||||||
|
!GoogleChrome.isVideoTypeSupported(firstAttachment.contentType)
|
||||||
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -976,6 +979,7 @@
|
||||||
sticker: null,
|
sticker: null,
|
||||||
preview: [],
|
preview: [],
|
||||||
});
|
});
|
||||||
|
this.trigger('content-changed');
|
||||||
|
|
||||||
await window.Signal.Data.saveMessage(this.attributes, {
|
await window.Signal.Data.saveMessage(this.attributes, {
|
||||||
Message: Whisper.Message,
|
Message: Whisper.Message,
|
||||||
|
|
|
@ -10,6 +10,7 @@ const config = url.parse(window.location.toString(), true).query;
|
||||||
const { locale } = config;
|
const { locale } = config;
|
||||||
const localeMessages = ipcRenderer.sendSync('locale-data');
|
const localeMessages = ipcRenderer.sendSync('locale-data');
|
||||||
|
|
||||||
|
window.getEnvironment = () => config.environment;
|
||||||
window.getVersion = () => config.version;
|
window.getVersion = () => config.version;
|
||||||
window.theme = config.theme;
|
window.theme = config.theme;
|
||||||
window.i18n = i18n.setup(locale, localeMessages);
|
window.i18n = i18n.setup(locale, localeMessages);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue