Skip to content

Commit a50621b

Browse files
implement natrix notifications (WIP)
1 parent 6f39f98 commit a50621b

14 files changed

Lines changed: 1092 additions & 1008 deletions

school_data_hub_flutter/lib/features/matrix/data/matrix_api_service.dart

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)