mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
Merge branch 'krille/fix-stories-invites' into 'main'
chore: Fix stories invites See merge request famedly/fluffychat!647
This commit is contained in:
commit
1962adb25c
@ -125,9 +125,7 @@ class StoriesHeader extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
unread: room.notificationCount > 0 ||
|
unread: room.notificationCount > 0 ||
|
||||||
room.membership == Membership.invite,
|
room.membership == Membership.invite,
|
||||||
onPressed: () => room.hasPosts
|
onPressed: () => _goToStoryAction(context, room.id),
|
||||||
? _goToStoryAction(context, room.id)
|
|
||||||
: _contextualActions(context, room),
|
|
||||||
onLongPressed: () => _contextualActions(context, room),
|
onLongPressed: () => _contextualActions(context, room),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -144,6 +142,7 @@ extension on Room {
|
|||||||
getState(EventTypes.RoomCreate)!.sender.calcDisplayname();
|
getState(EventTypes.RoomCreate)!.sender.calcDisplayname();
|
||||||
|
|
||||||
bool get hasPosts {
|
bool get hasPosts {
|
||||||
|
if (membership == Membership.invite) return true;
|
||||||
final lastEvent = this.lastEvent;
|
final lastEvent = this.lastEvent;
|
||||||
if (lastEvent == null) return false;
|
if (lastEvent == null) return false;
|
||||||
if (lastEvent.type != EventTypes.Message) return false;
|
if (lastEvent.type != EventTypes.Message) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user