|
|
@ -150,9 +150,9 @@ impl<'a> Invitation<'a> { |
|
|
|
.store |
|
|
|
.store |
|
|
|
.get(Self::PREFIX, &to_vec(&self.id)?, Some(Self::TYPE))?; |
|
|
|
.get(Self::PREFIX, &to_vec(&self.id)?, Some(Self::TYPE))?; |
|
|
|
let t: (u8, u32, Option<String>) = from_slice(&type_ser)?; |
|
|
|
let t: (u8, u32, Option<String>) = from_slice(&type_ser)?; |
|
|
|
if t.1 < now_timestamp() { |
|
|
|
// if t.1 < now_timestamp() {
|
|
|
|
return Err(ProtocolError::Expired); |
|
|
|
// return Err(ProtocolError::Expired);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
Ok(t.0) |
|
|
|
Ok(t.0) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|