Skip to content

Commit

Permalink
Expose MXRoomPowerLevels Swift wrappers to Element (#1869)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Buquet <[email protected]>
Co-authored-by: Nicolas Buquet <[email protected]>
  • Loading branch information
NicolasBuquet and NicolasBuquet authored Jun 24, 2024
1 parent e1288e7 commit 04e422e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MatrixSDK/Contrib/Swift/JSONModels/MXRoomPowerLevels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extension MXRoomPowerLevels {
- parameter eventType: the type of event.
- returns: the required minimum power level.
*/
@nonobjc func minimumPowerLevelForSendingMessageEvent(_ eventType: MXEventType) -> Int {
@nonobjc public func minimumPowerLevelForSendingMessageEvent(_ eventType: MXEventType) -> Int {
return __minimumPowerLevelForSendingEvent(asMessage: eventType.identifier)
}

Expand All @@ -36,7 +36,7 @@ extension MXRoomPowerLevels {
- parameter eventType: the type of event.
- returns: the required minimum power level.
*/
@nonobjc func minimumPowerLevelForSendingStateEvent(_ eventType: MXEventType) -> Int {
@nonobjc public func minimumPowerLevelForSendingStateEvent(_ eventType: MXEventType) -> Int {
return __minimumPowerLevelForSendingEvent(asStateEvent: eventType.identifier)
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-1869.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Expose MXRroomPowerLevels Swift wrappers to Element

0 comments on commit 04e422e

Please sign in to comment.