add /stamp command

command allow override standard stamps of incoming and outgoing messages
This commit is contained in:
Artjom Vejsel
2022-03-29 20:34:34 +03:00
parent abfab2aff7
commit 2c003dd2e1
7 changed files with 97 additions and 2 deletions

View File

@@ -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);