"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "js/view_syncs.js" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

view_syncs.js  (Signal-Desktop-1.35.2):view_syncs.js  (Signal-Desktop-1.36.1)
/* global /* global
Backbone, Backbone,
Whisper, Whisper,
MessageController MessageController
*/ */
/* eslint-disable more/no-then */ /* eslint-disable more/no-then */
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
(function() { (function() {
'use strict';
window.Whisper = window.Whisper || {}; window.Whisper = window.Whisper || {};
Whisper.ViewSyncs = new (Backbone.Collection.extend({ Whisper.ViewSyncs = new (Backbone.Collection.extend({
forMessage(message) { forMessage(message) {
const syncBySourceUuid = this.findWhere({ const syncBySourceUuid = this.findWhere({
sourceUuid: message.get('sourceUuid'), sourceUuid: message.get('sourceUuid'),
timestamp: message.get('sent_at'), timestamp: message.get('sent_at'),
}); });
if (syncBySourceUuid) { if (syncBySourceUuid) {
window.log.info('Found early view sync for message'); window.log.info('Found early view sync for message');
this.remove(syncBySourceUuid); this.remove(syncBySourceUuid);
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)