mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 14:30:29 +03:00 
			
		
		
		
	fix room activity indicator appearing on self typing (#2217)
This commit is contained in:
		
							parent
							
								
									2e0c7c4406
								
							
						
					
					
						commit
						b3979b31c7
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -182,7 +182,9 @@ export function RoomNavItem({
 | 
				
			||||||
  const { focusWithinProps } = useFocusWithin({ onFocusWithinChange: setHover });
 | 
					  const { focusWithinProps } = useFocusWithin({ onFocusWithinChange: setHover });
 | 
				
			||||||
  const [menuAnchor, setMenuAnchor] = useState<RectCords>();
 | 
					  const [menuAnchor, setMenuAnchor] = useState<RectCords>();
 | 
				
			||||||
  const unread = useRoomUnread(room.roomId, roomToUnreadAtom);
 | 
					  const unread = useRoomUnread(room.roomId, roomToUnreadAtom);
 | 
				
			||||||
  const typingMember = useRoomTypingMember(room.roomId);
 | 
					  const typingMember = useRoomTypingMember(room.roomId).filter(
 | 
				
			||||||
 | 
					    (receipt) => receipt.userId !== mx.getUserId()
 | 
				
			||||||
 | 
					  );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const handleContextMenu: MouseEventHandler<HTMLElement> = (evt) => {
 | 
					  const handleContextMenu: MouseEventHandler<HTMLElement> = (evt) => {
 | 
				
			||||||
    evt.preventDefault();
 | 
					    evt.preventDefault();
 | 
				
			||||||
| 
						 | 
					@ -219,7 +221,9 @@ export function RoomNavItem({
 | 
				
			||||||
                <RoomAvatar
 | 
					                <RoomAvatar
 | 
				
			||||||
                  roomId={room.roomId}
 | 
					                  roomId={room.roomId}
 | 
				
			||||||
                  src={
 | 
					                  src={
 | 
				
			||||||
                    direct ? getDirectRoomAvatarUrl(mx, room, 96, useAuthentication) : getRoomAvatarUrl(mx, room, 96, useAuthentication)
 | 
					                    direct
 | 
				
			||||||
 | 
					                      ? getDirectRoomAvatarUrl(mx, room, 96, useAuthentication)
 | 
				
			||||||
 | 
					                      : getRoomAvatarUrl(mx, room, 96, useAuthentication)
 | 
				
			||||||
                  }
 | 
					                  }
 | 
				
			||||||
                  alt={room.name}
 | 
					                  alt={room.name}
 | 
				
			||||||
                  renderFallback={() => (
 | 
					                  renderFallback={() => (
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue