Skip to content

Commit

Permalink
Change format of room history messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jajm committed Sep 24, 2020
1 parent 434b09a commit 6da3f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fe-common/fe-rocketchat.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ static void result_cb_loadHistory(ROCKETCHAT_SERVER_REC *server, json_t *json, j

ts = json_integer_value(json_object_get(json_object_get(message, "ts"), "$date"));
datetime = g_date_time_new_from_unix_local(ts / 1000);
datetime_formatted = g_date_time_format(datetime, "%F %T");
datetime_formatted = g_date_time_format(datetime, "%c");

text = g_strdup_printf("[%s] <%s> %s", datetime_formatted, username, msg);
text = g_strdup_printf("<%s> %s (%s)", username, msg, datetime_formatted);
printtext(server, rid, MSGLEVEL_CLIENTCRAP, text);

g_free(text);
Expand Down

0 comments on commit 6da3f25

Please sign in to comment.