mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-10-30 19:47:23 +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 || | ||||
|                           room.membership == Membership.invite, | ||||
|                       onPressed: () => room.hasPosts | ||||
|                           ? _goToStoryAction(context, room.id) | ||||
|                           : _contextualActions(context, room), | ||||
|                       onPressed: () => _goToStoryAction(context, room.id), | ||||
|                       onLongPressed: () => _contextualActions(context, room), | ||||
|                     ), | ||||
|                   ), | ||||
| @ -144,6 +142,7 @@ extension on Room { | ||||
|       getState(EventTypes.RoomCreate)!.sender.calcDisplayname(); | ||||
| 
 | ||||
|   bool get hasPosts { | ||||
|     if (membership == Membership.invite) return true; | ||||
|     final lastEvent = this.lastEvent; | ||||
|     if (lastEvent == null) return false; | ||||
|     if (lastEvent.type != EventTypes.Message) return false; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Krille Fear
						Krille Fear