mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 00:45:18 +00:00
Check the availability of Firebase before accepting new tokens
This commit is contained in:
@ -9,4 +9,10 @@ pub struct APIClient {
|
||||
pub comment: Option<String>,
|
||||
pub default_expiration_time: u64,
|
||||
pub firebase_token: Option<String>,
|
||||
}
|
||||
|
||||
impl APIClient {
|
||||
pub fn is_firebase_available(&self) -> bool {
|
||||
self.firebase_token.is_some()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user