fix(ui): Fix custom outgoing stamp and fix stamp command help
Replace the hardcoded "me" stamp for outgoing messages that are sometimes used with the value from PREF_OUTGOING_STAMP. It was never implemented in all code paths. Like with receipts for example. Additionally fix the confusing description and variable names. Ref:2c003dd2(Add /stamp feature) Ref:3a4cd7da(Broke the variables) Fixes: https://github.com/profanity-im/profanity/issues/2125 Signed-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
@@ -392,7 +392,8 @@ chatwin_outgoing_msg(ProfChatWin* chatwin, const char* const message, const char
|
||||
const char* display_message = plugin_message ?: message;
|
||||
|
||||
if (request_receipt && id) {
|
||||
win_print_outgoing_with_receipt((ProfWin*)chatwin, enc_char, "me", display_message, id, replace_id);
|
||||
auto_gchar gchar* outgoing_str = prefs_get_string(PREF_OUTGOING_STAMP);
|
||||
win_print_outgoing_with_receipt((ProfWin*)chatwin, enc_char, outgoing_str, display_message, id, replace_id);
|
||||
} else {
|
||||
win_print_outgoing((ProfWin*)chatwin, enc_char, id, replace_id, display_message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user