fix: add deprecation mention for getUserByMYIDSync

This commit is contained in:
Henri Carnot 2022-06-02 11:13:27 +00:00
parent 311233f20a
commit 44b7247d2c
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,6 @@
## [0.9.9] - 2nd Jun 2022
- fix: Added deprecation mention for getUserByMXIDSync.
## [0.9.8] - 2nd Jun 2022 ## [0.9.8] - 2nd Jun 2022
- feat: Add search for events in timeline (Krille Fear) - feat: Add search for events in timeline (Krille Fear)
- feat: Add waitForSync helper (Henri Carnot) - feat: Add waitForSync helper (Henri Carnot)

View File

@ -1416,6 +1416,12 @@ class Room {
(summary.mJoinedMemberCount ?? 0) + (summary.mInvitedMemberCount ?? 0); (summary.mJoinedMemberCount ?? 0) + (summary.mInvitedMemberCount ?? 0);
} }
@Deprecated(
"The method was renamed unsafeGetUserFromMemoryOrFallback. Please prefer requestParticipants.")
User getUserByMXIDSync(String mxID) {
return unsafeGetUserFromMemoryOrFallback(mxID);
}
/// Returns the [User] object for the given [mxID] or return /// Returns the [User] object for the given [mxID] or return
/// a fallback [User] and start a request to get the user /// a fallback [User] and start a request to get the user
/// from the homeserver. /// from the homeserver.

View File

@ -1,6 +1,6 @@
name: matrix name: matrix
description: Matrix Dart SDK description: Matrix Dart SDK
version: 0.9.8 version: 0.9.9
homepage: https://famedly.com homepage: https://famedly.com
repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git