Skip to content

Commit 569b53d

Browse files
committed
Fix the RoomUnbanner capability.
1 parent 2e792ef commit 569b53d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ All notable changes to this project will be documented in this file.
1111
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1212
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1313

14+
## [2.5.2] - 2025-01-18
15+
16+
### Fixed
17+
18+
- Fix an issue where the implementation of the RoomUnbanner capability
19+
was actually calling `/ban`.
20+
1421
## [2.5.0] - 2025-01-12
1522

1623
### Added

src/Client/BotSDKBaseClient.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,10 @@ export class BotSDKBaseClient
281281
}
282282
public async unbanUser(
283283
room: StringRoomID | MatrixRoomID,
284-
userID: StringUserID,
285-
reason?: string
284+
userID: StringUserID
286285
): Promise<ActionResult<void>> {
287286
return await this.client
288-
.banUser(userID, toRoomID(room), reason)
287+
.unbanUser(userID, toRoomID(room))
289288
.then((_) => Ok(undefined), resultifyBotSDKRequestError);
290289
}
291290
public async sendStateEvent(

0 commit comments

Comments
 (0)