mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-04 19:19:29 +01:00
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:
commit
cafd9ccaa6
@ -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();
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user