From bd6c8537293b48178924bfbee3e6fcb39d10f9c2 Mon Sep 17 00:00:00 2001 From: Vysheng Date: Fri, 25 Oct 2013 02:21:52 +0400 Subject: [PATCH] Print info about forwarded message --- interface.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/interface.c b/interface.c index 0957832..c414325 100644 --- a/interface.c +++ b/interface.c @@ -612,8 +612,10 @@ int our_id; void print_service_message (struct message *M) { print_start (); push_color (COLOR_GREY); - + + push_color (COLOR_MAGENTA); print_date (M->date); + pop_color (); printf (" "); print_chat_name (M->to_id, user_chat_get (M->to_id)); printf (" "); @@ -706,6 +708,11 @@ void print_message (struct message *M) { printf (" »»» "); } } + if (M->fwd_from_id) { + printf ("[fwd from "); + print_user_name (M->fwd_from_id, user_chat_get (M->fwd_from_id)); + printf ("] "); + } if (M->message && strlen (M->message)) { printf ("%s", M->message); }