old_contents: import Modal from 'v2/components/UI/Modal'
  import ModalFullscreenDialog from 'v2/components/UI/ModalFullscreenDialog'
  import ModalBlockLightbox from 'v2/components/ModalBlockLightbox'
  
  export default ({ id, context }) => {
    // Filter out Channels, Groups, Users and duplicates; return just IDs
    const ids = [
      ...new Set(
        context
          .filter(
            k =>
              k.__typename !== 'Channel' &&
              k.__typename !== 'Group' &&
              k.__typename !== 'User'
          )
          .map(k => k.id)
      ),
    ]
  
    const currentTitle = document.title
    const onClose = () => {
      document.title = currentTitle
    }
  
    new Modal(
      ModalBlockLightbox,
      { id, ids, onClose },
      { Dialog: ModalFullscreenDialog }
    ).open()
  }
  
new_contents: import Modal from 'v2/components/UI/Modal'
  import ModalFullscreenDialog from 'v2/components/UI/ModalFullscreenDialog'
  import { ModalBlockLightbox } from 'v2/components/ModalBlockLightbox'
  
  export default ({ id, context }) => {
    // Filter out Channels, Groups, Users and duplicates; return just IDs
    const ids = [
      ...new Set(
        context
          .filter(
            k =>
              k.__typename !== 'Channel' &&
              k.__typename !== 'Group' &&
              k.__typename !== 'User'
          )
          .map(k => k.id)
      ),
    ]
  
    const currentTitle = document.title
    const onClose = () => {
      document.title = currentTitle
    }
  
    new Modal(
      ModalBlockLightbox,
      { id, ids, onClose },
      { Dialog: ModalFullscreenDialog }
    ).open()
  }
  
subject: Fix openLightbox ref