"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXD2OIZABjs = require('./chunk-XD2OIZAB.js');var t={};_chunkXD2OIZABjs.b.call(void 0, t,{default:()=>g});var r,g,o=_chunkXD2OIZABjs.a.call(void 0, ()=>{"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});var _react = require('react');var _reactrelay = require('react-relay');var n,f= exports.a =(n!==void 0||(n=(o(),_chunkXD2OIZABjs.c.call(void 0, 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= exports.b =function(e){var l=_react.useMemo.call(void 0, function(){var a=_reactrelay.ConnectionHandler.getConnectionID(e,"chatRoom_allMessages");return{subscription:f,variables:{roomId:e,connections:[a]},onError:console.error}},[e]);return _reactrelay.useSubscription.call(void 0, l)};exports.a = f; exports.b = S;
//# sourceMappingURL=chunk-UEYQ76RA.js.map