Skip to content

Commit

Permalink
创建频道和机器人时,不再设置默认头像
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Mar 23, 2024
1 parent a702602 commit 0a05503
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ public boolean action(Request request, Response response) {
inputCreateChatroom.setChatroomId(messagesStore.getShortUUID());
}

if (inputCreateChatroom.getPortrait() == null || inputCreateChatroom.getPortrait().length() == 0) {
inputCreateChatroom.setPortrait("https://avatars.io/gravatar/" + inputCreateChatroom.getChatroomId());
}

WFCMessage.ChatroomInfo info = inputCreateChatroom.toChatroomInfo();
messagesStore.createChatroom(inputCreateChatroom.getChatroomId(), info);
setResponseContent(RestResult.ok(new OutputCreateChatroom(inputCreateChatroom.getChatroomId())), response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ public boolean action(Request request, Response response) {
inputCreateRobot.setUserId(messagesStore.getShortUUID());
}

if (inputCreateRobot.getPortrait() == null || inputCreateRobot.getPortrait().length() == 0) {
inputCreateRobot.setPortrait("https://avatars.io/gravatar/" + inputCreateRobot.getUserId());
}

WFCMessage.User newUser = inputCreateRobot.toUser();
try {
messagesStore.addUserInfo(newUser);
Expand Down

0 comments on commit 0a05503

Please sign in to comment.