aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-chat-window.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index b841506ba..dc7f2f102 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -273,12 +273,10 @@ chat_window_get_chat_name (EmpathyChat *chat)
remote_contact = empathy_chat_get_remote_contact (chat);
if (remote_contact) {
name = empathy_contact_get_name (remote_contact);
- } else {
- name = _("Conversation");
}
}
- return name;
+ return name ? name : _("Conversation");
}
static void