"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "js/keychange_listener.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).

keychange_listener.js  (Signal-Desktop-1.35.2):keychange_listener.js  (Signal-Desktop-1.36.1)
/* global Whisper, SignalProtocolStore, ConversationController, _ */ /* global Whisper, SignalProtocolStore, ConversationController, _ */
/* 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.KeyChangeListener = { Whisper.KeyChangeListener = {
init(signalProtocolStore) { init(signalProtocolStore) {
if (!(signalProtocolStore instanceof SignalProtocolStore)) { if (!(signalProtocolStore instanceof SignalProtocolStore)) {
throw new Error('KeyChangeListener requires a SignalProtocolStore'); throw new Error('KeyChangeListener requires a SignalProtocolStore');
} }
signalProtocolStore.on('keychange', async identifier => { signalProtocolStore.on('keychange', async identifier => {
const conversation = await ConversationController.getOrCreateAndWait( const conversation = await ConversationController.getOrCreateAndWait(
 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)