[polari/wip/raresv/finalRebase: 9/18] userDetails: add offline support.
- From: Rares Visalom <raresvisalom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/finalRebase: 9/18] userDetails: add offline support.
- Date: Thu, 18 Aug 2016 18:51:42 +0000 (UTC)
commit ee3f57e9e4a0dfb0f8d935e102407ff852bf675d
Author: raresv <rares visalom gmail com>
Date: Thu Aug 18 15:50:16 2016 +0300
userDetails: add offline support.
src/userList.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/userList.js b/src/userList.js
index 67f3f79..4a80d24 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -189,6 +189,9 @@ const UserDetails = new Lang.Class({
if (this._user)
this._user.request_contact_info_async(this._cancellable,
Lang.bind(this, this._onContactInfoReady));
+ //TODO: else use this._nickname to query tracker
+ else
+ this._revealDetails();
},
_unexpand: function() {
@@ -276,6 +279,12 @@ const UserDetails = new Lang.Class({
},
_updateButtonVisibility: function() {
+ if (!this._user) {
+ this._messageButton.sensitive = false;
+
+ return;
+ }
+
if (this._user == this._user.connection.self_contact) {
this._messageButton.visible = false;
this._messageButton.sensitive = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]