From 8571a0b0bc73062951d6ba55cc17e0ae2fc87cfc Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sat, 12 Jan 2013 23:49:44 +0100 Subject: [PATCH] Adjust to ObjXMPP changes. --- src/core/JubChatClient.m | 2 +- src/gui/gtk/JubGtkRosterUI.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/JubChatClient.m b/src/core/JubChatClient.m index d539d90..4efa894 100644 --- a/src/core/JubChatClient.m +++ b/src/core/JubChatClient.m @@ -65,7 +65,7 @@ - (void)rosterWasReceived: (XMPPRoster*)roster { XMPPPresence *pres = [XMPPPresence presence]; - [pres addStatus: @"Hello from JubJub"]; + [pres setStatus: @"Hello from JubJub"]; [connection sendStanza: pres]; } @end diff --git a/src/gui/gtk/JubGtkRosterUI.m b/src/gui/gtk/JubGtkRosterUI.m index ae0d54d..ad54fd6 100644 --- a/src/gui/gtk/JubGtkRosterUI.m +++ b/src/gui/gtk/JubGtkRosterUI.m @@ -45,7 +45,7 @@ static void presence_changed(GtkComboBox *combo_box, gpointer data) else { pres = [XMPPPresence presence]; if (strcmp(status, "available")) - [pres addShow: @(status)]; + [pres setShow: @(status)]; } [connection sendStanza: pres]; -- 2.39.5