[polari] Include a status when requesting offline presence
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] Include a status when requesting offline presence
- Date: Thu, 6 Feb 2014 18:47:18 +0000 (UTC)
commit dd4b2573ccae790d921331e46881d0756dec974d
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sat Feb 1 21:06:42 2014 +0100
Include a status when requesting offline presence
While this probably makes no difference for the IRC protocol,
it makes for a better output of mc-tool, and is consistent with
what empathy does.
https://bugzilla.gnome.org/show_bug.cgi?id=723432
src/accountsMonitor.js | 2 +-
src/ircParser.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/accountsMonitor.js b/src/accountsMonitor.js
index 6774175..e676ade 100644
--- a/src/accountsMonitor.js
+++ b/src/accountsMonitor.js
@@ -62,7 +62,7 @@ const AccountsMonitor = new Lang.Class({
continue;
this._app.hold();
- account.request_presence_async(presence, '', '',
+ account.request_presence_async(presence, 'offline', '',
Lang.bind(this, function() {
this._app.release();
}));
diff --git a/src/ircParser.js b/src/ircParser.js
index 88631e6..3baba35 100644
--- a/src/ircParser.js
+++ b/src/ircParser.js
@@ -239,7 +239,7 @@ const IrcParser = new Lang.Class({
case 'QUIT': {
let presence = Tp.ConnectionPresenceType.OFFLINE;
let message = stripCommand(text);
- this._room.account.request_presence_async(presence, '', message,
+ this._room.account.request_presence_async(presence, 'offline', message,
Lang.bind(this, function(a, res) {
try {
a.request_presence_finish(res);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]