fix(notification): permission on mobile returns prompt (#627)

This commit is contained in:
Lucas Fernandes Nogueira
2023-09-30 10:09:21 -03:00
committed by GitHub
parent a1738b2401
commit 8902fe9adf
4 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ impl<'de> Deserialize<'de> for PermissionState {
match s.to_lowercase().as_str() {
"granted" => Ok(Self::Granted),
"denied" => Ok(Self::Denied),
"default" => Ok(Self::Unknown),
"prompt" => Ok(Self::Unknown),
_ => Err(DeError::custom(format!("unknown permission state '{s}'"))),
}
}