Skip to content

Commit ae90708

Browse files
Johennespoljar
authored andcommitted
fix(oauth): use ruma::time::instant for wasm compatibility
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
1 parent f49c588 commit ae90708

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

crates/matrix-sdk/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ All notable changes to this project will be documented in this file.
110110

111111
### Bugfix
112112

113+
- Switch QR login implementation from `std::time::Instant` to `ruma::time::Instant` which
114+
is compatible with Wasm.
115+
([#5889](https://github.com/matrix-org/matrix-rust-sdk/pull/5889))
116+
113117
## [0.14.0] - 2025-09-04
114118

115119
### Features

crates/matrix-sdk/src/authentication/oauth/qrcode/grant.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use std::time::{Duration, Instant};
15+
use std::time::Duration;
1616

1717
use eyeball::SharedObservable;
1818
use futures_core::Stream;
@@ -24,6 +24,7 @@ use matrix_sdk_base::{
2424
},
2525
};
2626
use oauth2::VerificationUriComplete;
27+
use ruma::time::Instant;
2728
use url::Url;
2829
#[cfg(doc)]
2930
use vodozemac::ecies::CheckCode;

0 commit comments

Comments
 (0)