mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fix blank window after unlink
Don't wait for background init before rendering inbox. If the client detects that it has become unlinked, it will not call `init()`, never fire the deferredInit, and never render the inbox, but we want to allow users access to their local messages even if they have (perhaps temporarily) unlinked the desktop client. Also, prefer not to extend Backbone.Model until/unless we really need it. // FREEBIE
This commit is contained in:
11
js/index.js
11
js/index.js
@@ -17,13 +17,10 @@
|
||||
|
||||
function render() {
|
||||
extension.windows.getBackground(function(bg) {
|
||||
|
||||
var inboxPromise = bg.initLoading.done(function(owsDesktopApp) {
|
||||
owsDesktopApp.getAppView(window).then(function(appView) {
|
||||
var bodyEl = document.getElementById('signal-container');
|
||||
bodyEl.innerHTML = "";
|
||||
bodyEl.append(appView.el);
|
||||
});
|
||||
bg.owsDesktopApp.getAppView(window).then(function(appView) {
|
||||
var bodyEl = document.getElementById('signal-container');
|
||||
bodyEl.innerHTML = "";
|
||||
bodyEl.append(appView.el);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user