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;
|
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) {
|
for (let i = 0, max = versions.length; i < max; i += 1) {
|
||||||
const currentVersion = versions[i];
|
const currentVersion = versions[i];
|
||||||
|
|
|
@ -579,15 +579,14 @@
|
||||||
conversationId: this.model.get('id'),
|
conversationId: this.model.get('id'),
|
||||||
WhisperMessageCollection: Whisper.MessageCollection,
|
WhisperMessageCollection: Whisper.MessageCollection,
|
||||||
});
|
});
|
||||||
const loadMessages = Signal.Components.PropTypes.Message.loadWithObjectURL(
|
const loadMessages = Signal.Components.PropTypes.Message
|
||||||
Signal.Migrations.loadMessage
|
.loadWithObjectURL(Signal.Migrations.loadMessage);
|
||||||
);
|
|
||||||
const mediaWithObjectURLs = await loadMessages(media);
|
const mediaWithObjectURLs = await loadMessages(media);
|
||||||
|
|
||||||
const mediaGalleryProps = {
|
const mediaGalleryProps = {
|
||||||
media: mediaWithObjectURLs,
|
media: mediaWithObjectURLs,
|
||||||
documents: [],
|
documents: [],
|
||||||
onItemClick: ({message}) => {
|
onItemClick: ({ message }) => {
|
||||||
const lightboxProps = {
|
const lightboxProps = {
|
||||||
imageURL: message.objectURL,
|
imageURL: message.objectURL,
|
||||||
};
|
};
|
||||||
|
@ -597,7 +596,7 @@
|
||||||
onClose: () => Signal.Backbone.Views.Lightbox.hide(),
|
onClose: () => Signal.Backbone.Views.Lightbox.hide(),
|
||||||
});
|
});
|
||||||
Signal.Backbone.Views.Lightbox.show(this.lightboxView.el);
|
Signal.Backbone.Views.Lightbox.show(this.lightboxView.el);
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const view = new Whisper.ReactWrapperView({
|
const view = new Whisper.ReactWrapperView({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue