Skip to content

Commit

Permalink
Fix stripping HTML when sending a message to a group.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoehermann committed Jul 13, 2024
1 parent 85d67ba commit 7bc5ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int presage_send_chat(PurpleConnection *connection, int id, const gchar *message
if (group != NULL) {
// strip HTML similar to these reasons: https://github.com/majn/telegram-purple/issues/12 and https://github.com/majn/telegram-purple/commit/fffe751
char *msg = purple_markup_strip_html(message); // NOTE: This turns newlines into spaces and <br> tags into newlines
presage_rust_send_group(rust_runtime, presage->tx_ptr, group, message);
presage_rust_send_group(rust_runtime, presage->tx_ptr, group, msg);
g_free(msg);
}
}
Expand Down

0 comments on commit 7bc5ed6

Please sign in to comment.