Skip to content

Commit

Permalink
fix: correct endpoint url for leave room
Browse files Browse the repository at this point in the history
  • Loading branch information
mebo4b committed Dec 5, 2022
1 parent cc69de1 commit 85e08f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class RocketChatService implements MessageClient {
private static final String ENDPOINT_GROUP_DELETE = "/groups.delete";
private static final String ENDPOINT_GROUP_INVITE = "/groups.invite";
private static final String ENDPOINT_GROUP_KICK = "/groups.kick";
private static final String ENDPOINT_GROUP_LEAVE = "/groups.leave";
private static final String ENDPOINT_ROOM_LEAVE = "/rooms.leave";
private static final String ENDPOINT_GROUP_MEMBERS = "/groups.members";
private static final String ENDPOINT_GROUP_READ_ONLY = "/groups.setReadOnly";
private static final String ENDPOINT_GROUP_KEY_UPDATE = "/e2e.updateGroupKey";
Expand Down Expand Up @@ -542,7 +542,7 @@ public void leaveFromGroupAsTechnicalUser(String rcGroupId)
var body = new GroupLeaveBodyDTO(rcGroupId);
HttpEntity<GroupLeaveBodyDTO> request = new HttpEntity<>(body, header);

var url = rocketChatConfig.getApiUrl(ENDPOINT_GROUP_LEAVE);
var url = rocketChatConfig.getApiUrl(ENDPOINT_ROOM_LEAVE);
response = restTemplate.postForObject(url, request, GroupResponseDTO.class);

} catch (Exception ex) {
Expand Down

0 comments on commit 85e08f0

Please sign in to comment.