Skip to content

Commit

Permalink
机器人可以允许语音通话
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Feb 7, 2024
1 parent 3b86430 commit 2c35775
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public void writeToParcel(Parcel dest, int flags) {
dest.writeByte(this.audioOnly ? (byte) 1 : (byte) 0);
dest.writeInt(this.status);
dest.writeString(this.pin);
dest.writeInt(this.type);
}

protected CallStartMessageContent(Parcel in) {
Expand All @@ -234,6 +235,7 @@ protected CallStartMessageContent(Parcel in) {
this.audioOnly = in.readByte() != 0;
this.status = in.readInt();
this.pin = in.readString();
this.type = in.readInt();
}

public static final Creator<CallStartMessageContent> CREATOR = new Creator<CallStartMessageContent>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ public boolean filter(Conversation conversation) {
}

if (conversation.type == Conversation.ConversationType.Single) {
UserInfo userInfo = ChatManager.Instance().getUserInfo(conversation.target, false);
// robot
if (userInfo.type == 1) {
return true;
}
// UserInfo userInfo = ChatManager.Instance().getUserInfo(conversation.target, false);
// // robot
// if (userInfo.type == 1) {
// return true;
// }
return false;
}
return true;
Expand Down

0 comments on commit 2c35775

Please sign in to comment.