Skip to content

Commit d3d7c03

Browse files
andybalaambnjbvr
authored andcommitted
doc(crypto) Update a doc comment on update_user_state_to
1 parent 3558886 commit d3d7c03

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/matrix-sdk-crypto/src/identities/room_identity_state.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,10 @@ impl<R: RoomIdentityProvider> RoomIdentityState<R> {
192192
}
193193
}
194194

195-
// If the supplied `new_state` represents an actual change, updates our internal
196-
// state for this user, and returns the change information we will surface to
197-
// the UI.
195+
/// Updates our internal state for this user to the supplied `new_state`. If
196+
/// the change of state is significant (it requires something to change
197+
/// in the UI, like a warning being added or removed), returns the
198+
/// change information we will surface to the UI.
198199
fn update_user_state_to(
199200
&mut self,
200201
user_id: &UserId,

0 commit comments

Comments
 (0)