Commit 09bd608f authored by Wilko Manger's avatar Wilko Manger

Merge branch 'fix-replysub' into 'master'

Fix stripping of reply

Closes #70

See merge request !10
parents de72c75e f894d870
......@@ -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