summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-06-03 16:21:17 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-06-03 17:01:53 +0200
commit2baab46892efbb05d9f6083ca5b7709919140751 (patch)
treeedbeac48a45f736d71e3ff0f92d1a97320d9f80a
parent7030f811b5167b5068391c55b8105d13f70cf2ce (diff)
downloadtelepathy-gabble-2baab46892efbb05d9f6083ca5b7709919140751.tar.gz
muc-channel: remove unread assignments
-rw-r--r--src/muc-channel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/muc-channel.c b/src/muc-channel.c
index 2df7b319d..5c0260d55 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -2769,12 +2769,13 @@ handle_message (WockyMuc *muc,
gboolean from_member = (who != NULL);
TpChannelTextMessageType msg_type;
- TpHandleRepoIface *repo;
TpHandleType handle_type;
TpHandle from;
if (from_member)
{
+ TpHandleRepoIface *repo;
+
handle_type = TP_HANDLE_TYPE_CONTACT;
repo = tp_base_connection_get_handles (conn, handle_type);
from = tp_handle_ensure (repo, who->from,
@@ -2789,7 +2790,6 @@ handle_message (WockyMuc *muc,
else /* directly from MUC itself */
{
handle_type = TP_HANDLE_TYPE_ROOM;
- repo = tp_base_connection_get_handles (conn, handle_type);
from = tp_base_channel_get_target_handle (base);
}
@@ -2858,13 +2858,14 @@ handle_errmsg (WockyMuc *muc,
TpBaseConnection *conn = tp_base_channel_get_connection (base);
gboolean from_member = (who != NULL);
TpDeliveryStatus ds = TP_DELIVERY_STATUS_DELIVERED;
- TpHandleRepoIface *repo = NULL;
TpHandleType handle_type;
TpHandle from = 0;
const gchar *subject;
if (from_member)
{
+ TpHandleRepoIface *repo;
+
handle_type = TP_HANDLE_TYPE_CONTACT;
repo = tp_base_connection_get_handles (conn, handle_type);
from = tp_handle_ensure (repo, who->from,
@@ -2879,7 +2880,6 @@ handle_errmsg (WockyMuc *muc,
else /* directly from MUC itself */
{
handle_type = TP_HANDLE_TYPE_ROOM;
- repo = tp_base_connection_get_handles (conn, handle_type);
from = tp_base_channel_get_target_handle (base);
}