@@ -1665,17 +1665,17 @@ public extension MXRestClient {
16651665 }
16661666
16671667 /**
1668- Get the room ID corresponding to this room alias
1669-
1668+ Resolve given room alias to a room identifier and a list of servers aware of this identifier
1669+
16701670 - parameters:
16711671 - roomAlias: the alias of the room to look for.
16721672 - completion: A block object called when the operation completes.
1673- - response: Provides the the ID of the room on success.
1674-
1673+ - response: Provides a resolution object containing the room ID and a list of servers
1674+
16751675 - returns: a `MXHTTPOperation` instance.
16761676 */
1677- @nonobjc @discardableResult func roomId ( forRoomAlias roomAlias: String , completion: @escaping ( _ response: MXResponse < String > ) -> Void ) -> MXHTTPOperation {
1678- return __roomID ( forRoomAlias : roomAlias, success: currySuccess ( completion) , failure: curryFailure ( completion) )
1677+ @nonobjc @discardableResult func resolveRoomAlias ( _ roomAlias: String , completion: @escaping ( _ response: MXResponse < MXRoomAliasResolution > ) -> Void ) -> MXHTTPOperation {
1678+ return __resolveRoomAlias ( roomAlias, success: currySuccess ( completion) , failure: curryFailure ( completion) )
16791679 }
16801680
16811681 // Mark: - Media Repository API
@@ -1842,7 +1842,7 @@ public extension MXRestClient {
18421842
18431843 - returns: a `MXHTTPOperation` instance.
18441844 */
1845- @nonobjc @discardableResult func sendDirectToDevice( eventType: String , contentMap: MXUsersDevicesMap < NSDictionary > , txnId: String , completion: @escaping ( _ response: MXResponse < Void > ) -> Void ) -> MXHTTPOperation {
1845+ @nonobjc @discardableResult func sendDirectToDevice( eventType: String , contentMap: MXUsersDevicesMap < NSDictionary > , txnId: String ? , completion: @escaping ( _ response: MXResponse < Void > ) -> Void ) -> MXHTTPOperation {
18461846 return __send ( toDevice: eventType, contentMap: contentMap, txnId: txnId, success: currySuccess ( completion) , failure: curryFailure ( completion) )
18471847 }
18481848
0 commit comments