about summary refs log tree commit diff stats
path: root/src/xmpp/roster_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/roster_list.c')
-rw-r--r--src/xmpp/roster_list.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xmpp/roster_list.c b/src/xmpp/roster_list.c
index 9d7ac427..a06c44c9 100644
--- a/src/xmpp/roster_list.c
+++ b/src/xmpp/roster_list.c
@@ -199,6 +199,12 @@ roster_get_msg_display_name(const char* const barejid, const char* const resourc
 {
     assert(roster != NULL);
 
+    char* incoming_str = prefs_get_string(PREF_INCOMING_STAMP);
+
+    if (incoming_str) {
+        return incoming_str;
+    }
+
     GString* result = g_string_new("");
 
     PContact contact = roster_get_contact(barejid);