about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorArtjom Vejsel <akawolf0@gmail.com>2022-03-29 20:34:34 +0300
committerArtjom Vejsel <akawolf0@gmail.com>2022-04-02 00:23:08 +0300
commit2c003dd2e1a1fb956de6ed58c073e5b9d1cc5f3c (patch)
tree4ea53ea97f0e0a011b84001225008bbdb2f91c66 /src/xmpp
parentabfab2aff7561aee98957e805b637b83abc3bdd7 (diff)
downloadprofani-tty-2c003dd2e1a1fb956de6ed58c073e5b9d1cc5f3c.tar.gz
add /stamp command
command allow override standard stamps of incoming and outgoing messages
Diffstat (limited to 'src/xmpp')
-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..5ecff145 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_STR);
+
+    if (incoming_str) {
+        return incoming_str;
+    }
+
     GString* result = g_string_new("");
 
     PContact contact = roster_get_contact(barejid);