获取所有已经有过聊天记录的技师 id
This commit is contained in:
@@ -166,6 +166,13 @@ export class GirlChatData extends BaseData {
|
||||
return this.chatRecordIds;
|
||||
}
|
||||
|
||||
/** 是否已经有过聊天记录 */
|
||||
public isAlreadyChat(): boolean {
|
||||
const hasIds = this.chatRecordIds && this.chatRecordIds.length > 0;
|
||||
const hasRecords = this.chatRecord && this.chatRecord.size > 0;
|
||||
return hasIds || hasRecords;
|
||||
}
|
||||
|
||||
/** 获取最新的聊天记录的id */
|
||||
public getLatestChatRecordId(): number | null {
|
||||
if (this.chatRecordIds.length === 0) return null;
|
||||
|
||||
Reference in New Issue
Block a user