Remove backbone as a dependency
Co-authored-by: Yash <yash@signal.org> Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
parent
4fc9793cae
commit
237e239e05
69 changed files with 963 additions and 2110 deletions
|
@ -470,7 +470,7 @@ async function _promiseAjax<Type extends ResponseType, OutputShape>(
|
|||
|
||||
if (!unauthenticated && response.status === 401) {
|
||||
log.warn('Got 401 from Signal Server. We might be unlinked.');
|
||||
window.Whisper.events.trigger('mightBeUnlinked');
|
||||
window.Whisper.events.emit('mightBeUnlinked');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2048,23 +2048,23 @@ export function initialize({
|
|||
});
|
||||
|
||||
socketManager.on('statusChange', () => {
|
||||
window.Whisper.events.trigger('socketStatusChange');
|
||||
window.Whisper.events.emit('socketStatusChange');
|
||||
});
|
||||
|
||||
socketManager.on('online', () => {
|
||||
window.Whisper.events.trigger('online');
|
||||
window.Whisper.events.emit('online');
|
||||
});
|
||||
|
||||
socketManager.on('offline', () => {
|
||||
window.Whisper.events.trigger('offline');
|
||||
window.Whisper.events.emit('offline');
|
||||
});
|
||||
|
||||
socketManager.on('authError', () => {
|
||||
window.Whisper.events.trigger('unlinkAndDisconnect');
|
||||
window.Whisper.events.emit('unlinkAndDisconnect');
|
||||
});
|
||||
|
||||
socketManager.on('firstEnvelope', incoming => {
|
||||
window.Whisper.events.trigger('firstEnvelope', incoming);
|
||||
window.Whisper.events.emit('firstEnvelope', incoming);
|
||||
});
|
||||
|
||||
socketManager.on('serverAlerts', alerts => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue