We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e358a commit 3df336aCopy full SHA for 3df336a
crates/matrix-sdk/src/widget/machine/mod.rs
@@ -230,7 +230,7 @@ impl WidgetMachine {
230
FromWidgetRequest::ContentLoaded {} => {
231
let mut response =
232
vec![Self::send_from_widget_response(raw_request, Ok(JsonObject::new()))];
233
- if self.capabilities.is_unset() {
+ if matches!(self.capabilities, CapabilitiesState::Unset) {
234
response.append(&mut self.negotiate_capabilities());
235
}
236
response
@@ -665,10 +665,3 @@ enum CapabilitiesState {
665
/// The capabilities have already been negotiated.
666
Negotiated(Capabilities),
667
668
-
669
-impl CapabilitiesState {
670
- #[must_use]
671
- fn is_unset(&self) -> bool {
672
- matches!(self, Self::Unset)
673
- }
674
-}
0 commit comments