mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-27 22:34:55 +00:00
Docstring for type_state_key_tuple
This commit is contained in:
@@ -179,6 +179,8 @@ pub struct EventCommonFields {
|
||||
}
|
||||
|
||||
impl EventCommonFields {
|
||||
/// Helper method to check if the event is a state event and return the
|
||||
/// tuple of `(type, state_key)` if so.
|
||||
fn type_state_key_tuple(&self) -> Option<(&str, &str)> {
|
||||
if let Some(state_key) = &self.state_key {
|
||||
Some((&self.type_, state_key))
|
||||
|
||||
Reference in New Issue
Block a user