import{a as u,b as d,c}from"./chunk-XEHBQAFR.mjs";var t={};d(t,{default:()=>g});var r,g,o=u(()=>{"use strict";r=function(){var s={defaultValue:null,kind:"LocalArgument",name:"connections"},e={defaultValue:null,kind:"LocalArgument",name:"roomId"},l=[{kind:"Variable",name:"roomId",variableName:"roomId"}],a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i=[a];return{fragment:{argumentDefinitions:[s,e],kind:"Fragment",metadata:null,name:"useMessagesListSubscription",selections:[{alias:null,args:l,concreteType:"ChatRoomOnMessage",kind:"LinkedField",name:"chatRoomOnMessage",plural:!1,selections:[{alias:null,args:null,concreteType:"MessageEdge",kind:"LinkedField",name:"message",plural:!1,selections:[{alias:null,args:null,concreteType:"Message",kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MessageItemFragment"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actionObject",plural:!1,selections:i,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,s],kind:"Operation",name:"useMessagesListSubscription",selections:[{alias:null,args:l,concreteType:"ChatRoomOnMessage",kind:"LinkedField",name:"chatRoomOnMessage",plural:!1,selections:[{alias:null,args:null,concreteType:"MessageEdge",kind:"LinkedField",name:"message",plural:!1,selections:[{alias:null,args:null,concreteType:"Message",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"created",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"deleted",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"extraData",storageKey:null},{alias:null,args:null,concreteType:"Message",kind:"LinkedField",name:"inReplyTo",plural:!1,selections:i,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isRead",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pk",storageKey:null},{alias:null,args:null,concreteType:"Profile",kind:"LinkedField",name:"profile",plural:!1,selections:i,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"verb",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actionObject",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,filters:null,handle:"prependEdge",key:"",kind:"LinkedHandle",name:"message",handleArgs:[{kind:"Variable",name:"connections",variableName:"connections"}]}],storageKey:null}]},params:{cacheID:"ff1489e5fc5e1b630824d4f3c3cddeea",id:null,metadata:{},name:"useMessagesListSubscription",operationKind:"subscription",text:`subscription useMessagesListSubscription(
  $roomId: ID!
) {
  chatRoomOnMessage(roomId: $roomId) {
    message {
      node {
        ...MessageItemFragment
        actionObject {
          __typename
          id
        }
        id
      }
    }
  }
}

fragment MessageItemFragment on Message {
  id
  content
  created
  deleted
  extraData
  inReplyTo {
    id
  }
  isRead
  pk
  profile {
    id
  }
  verb
}
`}}}();r.hash="6fce082d43cb991ea03f2dc86a8e2975";g=r});import{useMemo as m}from"react";import{ConnectionHandler as p,useSubscription as y}from"react-relay";var n,f=(n!==void 0||(n=(o(),c(t)),n.hash&&n.hash!=="6fce082d43cb991ea03f2dc86a8e2975"&&console.error("The definition of 'useMessagesListSubscription' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data.")),n),S=function(e){var l=m(function(){var a=p.getConnectionID(e,"chatRoom_allMessages");return{subscription:f,variables:{roomId:e,connections:[a]},onError:console.error}},[e]);return y(l)};export{f as a,S as b};
//# sourceMappingURL=chunk-VWFTXCTG.mjs.map