Commit d28094fe authored by Andrea Schaefer's avatar Andrea Schaefer

Merge branch 'fix-crash' into 'master'

conversations: Don't crash without an alias

See merge request Librem5/chatty!128
parents 5e03e282 5bafca04
Pipeline #40043 passed with stages
in 4 minutes and 11 seconds
......@@ -1068,7 +1068,10 @@ chatty_conv_get_chat_messages_cb (const unsigned char* msg,
// Extract the alias from 'who' (full_room_address/alias)
line_split = g_strsplit ((const gchar*)who, "/", -1);
alias = g_strdup(line_split[1]);
if (line_split)
alias = g_strdup(line_split[1]);
alias = g_strdup((const char *)who);
avatar = chatty_icon_get_buddy_icon ((PurpleBlistNode*)buddy,
(const gchar*)alias,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment