~ubuntu-branches/ubuntu/natty/empathy/natty-updates

« back to all changes in this revision

Viewing changes to libempathy/empathy-tp-contact-factory.c

Tags: upstream-0.22.0
ImportĀ upstreamĀ versionĀ 0.22.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
2
/*
3
 
 * Copyright (C) 2007 Collabora Ltd.
 
3
 * Copyright (C) 2007-2008 Collabora Ltd.
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU Lesser General Public
122
122
        if (message != NULL) {
123
123
                empathy_contact_set_presence_message (contact,
124
124
                                                      g_value_get_string (message));
 
125
        } else {
 
126
                empathy_contact_set_presence_message (contact, NULL);
125
127
        }
126
128
}
127
129
 
269
271
                        continue;
270
272
                }
271
273
 
272
 
                if (G_STR_EMPTY (alias)) {
273
 
                        alias = NULL;
274
 
                }
275
 
 
276
274
                empathy_debug (DEBUG_DOMAIN, "Renaming contact %s (%d) to %s (changed cb)",
277
275
                               empathy_contact_get_id (contact),
278
276
                               handle, alias);
501
499
        }
502
500
 
503
501
        capabilities = empathy_contact_get_capabilities (contact);
 
502
        capabilities &= ~EMPATHY_CAPABILITIES_UNKNOWN;
504
503
 
505
504
        if (strcmp (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA) == 0) {
506
505
                capabilities &= ~EMPATHY_CAPABILITIES_AUDIO;
533
532
        if (error) {
534
533
                empathy_debug (DEBUG_DOMAIN, "Error getting capabilities: %s",
535
534
                               error->message);
 
535
                /* FIXME Should set the capabilities of the contacts for which this request
 
536
                 * originated to NONE */
536
537
                goto OUT;
537
538
        }
538
539