tjc-sdk
Version:
TIANJI IM SDK
2 lines (1 loc) • 605 B
JavaScript
import t from"./notificationMessageContent.js";import{MessageContentType as e}from"../messageContentType.js";import o from"../../client/tjc.js";import r from"../../model/secretChatState.js";class s extends t{constructor(){super(e.StartSecretChat_Notification)}formatNotification(t){let e=o.getSecretChatInfo(t.conversation.target).state;return e===r.Starting?"等待对方响应":e===r.Accepting?"密聊会话建立中":e===r.Established?"密聊会话已建立":e===r.Canceled?"密聊会话已取消":"密聊会话不可用"}encode(){return super.encode()}decode(t){super.decode(t)}}export{s as default};