UNPKG

stream-chat-react-native-core

Version:

The official React Native and Expo components for Stream Chat, a service for building chat applications

20 lines 542 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _shoehorn = require("@total-typescript/shoehorn"); var _default = (client, newMessage, channel = {}) => { client.dispatchEvent((0, _shoehorn.fromPartial)({ channel, channel_id: channel.id, channel_type: channel.type, cid: channel.cid, message: newMessage, type: 'message.new', ...(newMessage.user ? { user: newMessage.user } : {}) })); }; exports.default = _default; //# sourceMappingURL=messageNew.js.map