@@ -105,23 +105,28 @@ class MatrixApiService {
105105 );
106106
107107 // Direct messaging methods
108- Future <Map <String , String >> sendDirectTextMessage ({
109- required String targetUserId,
110- required String text,
111- String ? transactionId,
112- }) => _roomApiService.sendDirectTextMessage (
113- targetUserId: targetUserId,
114- text: text,
115- transactionId: transactionId,
116- );
108+ // Future<Map<String, String>> sendDirectTextMessage({
109+ // required String targetUserId,
110+ // required String text,
111+ // String? transactionId,
112+ // }) => _roomApiService.sendDirectTextMessage(
113+ // targetUserId: targetUserId,
114+ // text: text,
115+ // transactionId: transactionId,
116+ // );
117117
118118 Future <void > inviteUserToRoom ({
119119 required String roomId,
120120 required String userId,
121121 }) => _roomApiService.inviteUserToRoom (roomId: roomId, userId: userId);
122122
123- Future <String > getOrCreateDirectMessageRoom (String targetUserId) =>
124- _roomApiService.getOrCreateDirectMessageRoom (targetUserId);
123+ Future <String > getOrCreateDirectMessageRoom ({
124+ required String targetUserId,
125+ required String currentUserId,
126+ }) => _roomApiService.findOrCreateDirectMessageRoom (
127+ targetUserId: targetUserId,
128+ currentUserId: currentUserId,
129+ );
125130
126131 void setMatrixEnvironmentValues ({
127132 required String url,
0 commit comments