From cd7bb95c0a31d187bfe25bad15043f0b33b111cf Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 2 Aug 2023 00:56:38 +0100 Subject: implement resource binding --- src/stanza/stream.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/stanza/stream.rs') diff --git a/src/stanza/stream.rs b/src/stanza/stream.rs index 66741b8..f85166f 100644 --- a/src/stanza/stream.rs +++ b/src/stanza/stream.rs @@ -175,7 +175,11 @@ impl<'e> TryFrom> for Vec { } features.push(StreamFeature::Sasl(mechanisms)) } - _ => {} + _ => features.push(StreamFeature::Unknown), + }, + Event::Empty(e) => match e.name() { + QName(b"bind") => features.push(StreamFeature::Bind), + _ => features.push(StreamFeature::Unknown), }, _ => features.push(StreamFeature::Unknown), } -- cgit