@ -459,6 +459,9 @@ define(['underscore', 'bigscreen', 'moment', 'sjcl', 'modernizr', 'webrtc.adapte
// Unmark authorization process.
if (data.Userid) {
mediaStream.users.authorizing(false);
} else if (!mediaStream.users.authorizing()) {
// Trigger user data load when not in authorizing phase.
$scope.loadUserSettings();
}
// Always apply room after self received to avoid double stuff.
@ -137,7 +137,10 @@ define([
},
authorizing: function(value) {
// Boolean flag to indicate that an authentication is currently in progress.
if (typeof(value) !== "undefined") {
authorizing = !!value;
return authorizing;
authorize: function(data, success_cb, error_cb) {
mediaStream.users.authorizing(true);