summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-16 15:40:04 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-16 16:18:59 +0100
commit8e88018c188a2cef571150ef9fb1b484c16979b7 (patch)
tree795e3d6faf425a46b036c927edc5d00da32b29af
parent79f33c157e0689b18c0c7af2088a0aeffbfaa3c0 (diff)
default to plain if SupportedContentTypes is missing
-rw-r--r--telepathy-glib/text-channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c
index dc9e31205..16f5c6f89 100644
--- a/telepathy-glib/text-channel.c
+++ b/telepathy-glib/text-channel.c
@@ -272,8 +272,13 @@ tp_text_channel_constructed (GObject *obj)
TP_PROP_CHANNEL_INTERFACE_MESSAGES_SUPPORTED_CONTENT_TYPES);
if (self->priv->supported_content_types == NULL)
{
+ const gchar * const plain[] = { "text/plain", NULL };
+
DEBUG ("Channel doesn't have Messages.SupportedContentTypes in its "
"immutable properties");
+
+ /* spec mandates that plain text is always allowed. */
+ self->priv->supported_content_types = g_strdupv ((GStrv) plain);
}
else
{