Fixed forceOnline

Closes #991
This commit is contained in:
Igor Zhukov 2015-12-03 00:35:17 +03:00
parent 6815e69ade
commit e8d7590929

View File

@ -246,7 +246,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
var wasStatus; var wasStatus;
if (user.status._ != 'userStatusOffline') { if (user.status._ != 'userStatusOffline') {
delete user.status.wasStatus; delete user.status.wasStatus;
wasStatus != angular.copy(user.status); wasStatus = angular.copy(user.status);
} }
user.status = { user.status = {
_: 'userStatusOnline', _: 'userStatusOnline',