|
|
@ -260,7 +260,7 @@
|
|
|
|
window.Whisper.events.trigger('onShowUserDetails', {
|
|
|
|
window.Whisper.events.trigger('onShowUserDetails', {
|
|
|
|
userPubKey: pubkey,
|
|
|
|
userPubKey: pubkey,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else if (!this.model.isRss()){
|
|
|
|
this.showGroupSettings();
|
|
|
|
this.showGroupSettings();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -285,6 +285,7 @@
|
|
|
|
isPublic: this.model.isPublic(),
|
|
|
|
isPublic: this.model.isPublic(),
|
|
|
|
isRss: this.model.isRss(),
|
|
|
|
isRss: this.model.isRss(),
|
|
|
|
memberCount: members.length,
|
|
|
|
memberCount: members.length,
|
|
|
|
|
|
|
|
|
|
|
|
/* timerOptions: Whisper.ExpirationTimerOptions.map(item => ({
|
|
|
|
/* timerOptions: Whisper.ExpirationTimerOptions.map(item => ({
|
|
|
|
name: item.getName(),
|
|
|
|
name: item.getName(),
|
|
|
|
value: item.get('seconds'),
|
|
|
|
value: item.get('seconds'),
|
|
|
@ -309,6 +310,9 @@
|
|
|
|
onInviteFriends: () => {
|
|
|
|
onInviteFriends: () => {
|
|
|
|
window.Whisper.events.trigger('inviteFriends', this.model);
|
|
|
|
window.Whisper.events.trigger('inviteFriends', this.model);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
onShowLightBox: (lightBoxOptions = {}) => {
|
|
|
|
|
|
|
|
this.showChannelLightbox(lightBoxOptions);
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.titleView = new Whisper.ReactWrapperView({
|
|
|
|
this.titleView = new Whisper.ReactWrapperView({
|
|
|
@ -1263,7 +1267,6 @@
|
|
|
|
toast.render();
|
|
|
|
toast.render();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Signal.Types.Attachment.save({
|
|
|
|
Signal.Types.Attachment.save({
|
|
|
|
attachment,
|
|
|
|
attachment,
|
|
|
|
document,
|
|
|
|
document,
|
|
|
@ -1355,6 +1358,23 @@
|
|
|
|
this.deleteMessages([message]);
|
|
|
|
this.deleteMessages([message]);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showChannelLightbox({ media, attachment, message }) {
|
|
|
|
|
|
|
|
const selectedIndex = media.findIndex(
|
|
|
|
|
|
|
|
mediaMessage => mediaMessage.attachment.path === attachment.path
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
this.lightboxGalleryView = new Whisper.ReactWrapperView({
|
|
|
|
|
|
|
|
className: 'lightbox-wrapper',
|
|
|
|
|
|
|
|
Component: Signal.Components.LightboxGallery,
|
|
|
|
|
|
|
|
props: {
|
|
|
|
|
|
|
|
media,
|
|
|
|
|
|
|
|
onSave: () => this.downloadAttachment({ attachment, message }),
|
|
|
|
|
|
|
|
selectedIndex,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onClose: () => Signal.Backbone.Views.Lightbox.hide(),
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Signal.Backbone.Views.Lightbox.show(this.lightboxGalleryView.el);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
showLightbox({ attachment, message }) {
|
|
|
|
showLightbox({ attachment, message }) {
|
|
|
|
const { contentType, path } = attachment;
|
|
|
|
const { contentType, path } = attachment;
|
|
|
|
|
|
|
|
|
|
|
|