"use strict";const t=require("../../../common/vendor.js"),o=require("../../index.js");exports.initChat=i=>{o.TUIChatKit.init();const{chat:s}=t.A.getContext();if(i&&i.conversationID&&(null==s?void 0:s.isReady())){const{conversationID:o}=i;if(!o.startsWith("C2C")&&!o.startsWith("GROUP"))return void console.warn("conversationID from options is invalid.");t.Xt.switchConversation(o)}},exports.logout=o=>o?t.A.logout():Promise.resolve();
