Kévin Commaille 906d576a27
Implement Improved Signalling for 1:1 VoIP
According to MSC2746
2022-05-30 14:09:58 +02:00

12 lines
229 B
Rust

use js_int::{uint, UInt};
use crate::{error::VoipVersionIdError, Error};
pub fn validate(u: UInt) -> Result<(), Error> {
if u != uint!(0) {
return Err(VoipVersionIdError::WrongUintValue.into());
}
Ok(())
}