Fix formatting
This commit is contained in:
parent
b65370c8d7
commit
8e3c38d5fe
2 changed files with 12 additions and 6 deletions
|
@ -222,7 +222,14 @@ exports.upgradeSchema = async (rawMessage, { writeNewAttachmentData } = {}) => {
|
|||
}
|
||||
|
||||
let message = rawMessage;
|
||||
const versions = [toVersion0, toVersion1, toVersion2, toVersion3, toVersion4, toVersion5];
|
||||
const versions = [
|
||||
toVersion0,
|
||||
toVersion1,
|
||||
toVersion2,
|
||||
toVersion3,
|
||||
toVersion4,
|
||||
toVersion5,
|
||||
];
|
||||
|
||||
for (let i = 0, max = versions.length; i < max; i += 1) {
|
||||
const currentVersion = versions[i];
|
||||
|
|
|
@ -579,15 +579,14 @@
|
|||
conversationId: this.model.get('id'),
|
||||
WhisperMessageCollection: Whisper.MessageCollection,
|
||||
});
|
||||
const loadMessages = Signal.Components.PropTypes.Message.loadWithObjectURL(
|
||||
Signal.Migrations.loadMessage
|
||||
);
|
||||
const loadMessages = Signal.Components.PropTypes.Message
|
||||
.loadWithObjectURL(Signal.Migrations.loadMessage);
|
||||
const mediaWithObjectURLs = await loadMessages(media);
|
||||
|
||||
const mediaGalleryProps = {
|
||||
media: mediaWithObjectURLs,
|
||||
documents: [],
|
||||
onItemClick: ({message}) => {
|
||||
onItemClick: ({ message }) => {
|
||||
const lightboxProps = {
|
||||
imageURL: message.objectURL,
|
||||
};
|
||||
|
@ -597,7 +596,7 @@
|
|||
onClose: () => Signal.Backbone.Views.Lightbox.hide(),
|
||||
});
|
||||
Signal.Backbone.Views.Lightbox.show(this.lightboxView.el);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
const view = new Whisper.ReactWrapperView({
|
||||
|
|
Loading…
Reference in a new issue