123456789101112131415161718192021222324252627282930313233 |
- import IMOperator from "../im-operator";
- export default class CustomManager {
- constructor(page) {
- this._page = page;
- }
-
- showMsg({msg}) {
-
- this._page.UI.updateViewWhenReceive(msg);
- this._page.UI.updateChatStatus('会话已关闭', false);
- }
-
- sendOneMsg() {
- const temp = IMOperator.createCustomChatItem();
- this._page.UI.showItemForMoment(temp, (itemIndex) => {
- this._page.sendMsg({
- content: this._page.imOperator.createChatItemContent({
- type: IMOperator.CustomType,
- content: temp.content
- }), itemIndex
- });
- this._page.UI.updateChatStatus('会话已关闭', false);
- });
- }
- }
|