FileInputView: Event on attachment change to hide/show microphone

This commit is contained in:
Scott Nonnenberg
2019-01-11 15:48:36 -08:00
parent 43e5d16020
commit b08c10a547
3 changed files with 84 additions and 76 deletions

View File

@@ -151,6 +151,11 @@
this.fileInput = new Whisper.FileInputView({
el: this.$('.attachment-list'),
});
this.listenTo(
this.fileInput,
'attachments-changed',
this.toggleMicrophone
);
const getHeaderProps = () => {
const expireTimer = this.model.get('expireTimer');