Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-eschwartz committed Jan 22, 2020
2 parents e4f49cb + e046629 commit 1a65510
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libmattermost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,11 @@ mm_process_room_message(MattermostAccount *ma, JsonObject *post, JsonObject *dat

gchar *attachments = NULL;

// Strip '@' from username
if (username && username[0] == '@') {
username++;
}

if (purple_strequal(type, "slack_attachment")) {
JsonArray *attchs = json_object_get_array_member(props, "attachments");
guint i, len = json_array_get_length(attchs);
Expand Down

0 comments on commit 1a65510

Please sign in to comment.