Fix reply

This commit is contained in:
Christian Pauly 2020-02-17 16:47:50 +01:00
commit 9992756a4f
3 changed files with 4 additions and 5 deletions

View file

@ -99,8 +99,7 @@ class Message extends StatelessWidget {
),
if (event.isReply)
FutureBuilder<Event>(
future: timeline.getEventById(event.content['m.relates_to']
['m.in_reply_to']['event_id']),
future: event.getReplyEvent(timeline),
builder: (BuildContext context, snapshot) {
final Event replyEvent = snapshot.hasData
? snapshot.data