Merge pull request #559 from glowing-bear/fix-reconnect
fixes for reconnect feature
This commit is contained in:
commit
7508405124
|
@ -216,6 +216,11 @@ weechat.factory('connection',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// reinitialise everything, clear all buffers
|
||||||
|
// TODO: this can be further extended in the future by looking
|
||||||
|
// at the last line in ever buffer and request more buffers from
|
||||||
|
// WeeChat based on that
|
||||||
|
models.reinitialize();
|
||||||
$rootScope.reconnecting = true;
|
$rootScope.reconnecting = true;
|
||||||
// Have to do this to get the reconnect banner to show
|
// Have to do this to get the reconnect banner to show
|
||||||
$rootScope.$apply();
|
$rootScope.$apply();
|
||||||
|
|
|
@ -109,6 +109,8 @@ function($rootScope, $q) {
|
||||||
// otherwise emit it
|
// otherwise emit it
|
||||||
$rootScope.$emit('onMessage', message);
|
$rootScope.$emit('onMessage', message);
|
||||||
}
|
}
|
||||||
|
// Make sure all UI is updated with new data
|
||||||
|
$rootScope.$apply();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue