diff --git a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java index 71a681a..011e209 100644 --- a/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java +++ b/mallchat-chat-server/src/main/java/com/abin/mallchat/common/user/service/impl/FriendServiceImpl.java @@ -195,7 +195,7 @@ public class FriendServiceImpl implements FriendService { List friendRecordIds = userFriends.stream().map(UserFriend::getId).collect(Collectors.toList()); userFriendDao.removeByIds(friendRecordIds); //禁用房间 - roomService.disableFriendRoom(friendRecordIds); + roomService.disableFriendRoom(Arrays.asList(uid, friendUid)); } @Override