Commit f894d870 authored by Mathieu Velten's avatar Mathieu Velten

Fix stripping of reply

parent bb9dd258
......@@ -57,8 +57,11 @@ class TextSubtitle extends Subtitle {
);
} else {
// Strip replied-to content
final text = event.content.formattedBody
.split(RegExp('(<\\/*mx-reply>)'))[2];
var text = event.content.formattedBody;
final splitReply = text.split(RegExp('(<\\/*mx-reply>)'));
if (splitReply.length >= 3) {
text = splitReply[2];
}
return Row(
children: <Widget>[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment