Merge branch 'krille/dont-show-failedtosend-stories' into 'main'

Krille/dont show failedtosend stories

See merge request famedly/fluffychat!820
This commit is contained in:
Krille Fear 2022-04-11 05:19:10 +00:00
commit cafd9ccaa6
2 changed files with 6 additions and 2 deletions

View File

@ -401,7 +401,10 @@ class StoryPageController extends State<StoryPage> {
final timeline = this.timeline = await room.getTimeline();
timeline.requestKeys();
var events = timeline.events
.where((e) => e.type == EventTypes.Message && !e.redacted)
.where((e) =>
e.type == EventTypes.Message &&
!e.redacted &&
e.status == EventStatus.synced)
.toList();
final hasOutdatedEvents = events.removeOutdatedEvents();

View File

@ -179,7 +179,8 @@ class StoryView extends StatelessWidget {
hash: hash,
imageFit: BoxFit.cover,
),
if (event.messageType == MessageTypes.Video &&
if ({MessageTypes.Video, MessageTypes.Audio}
.contains(event.messageType) &&
PlatformInfos.isMobile)
Positioned(
top: 80,