mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user