improvement: better and more efficient message count calculation
This commit is contained in:
parent
1dc85895a7
commit
662a0cf1df
7 changed files with 169 additions and 68 deletions
|
@ -596,7 +596,10 @@ async fn join_room_by_id_helper(
|
|||
if let Some(state_key) = &pdu.state_key {
|
||||
if pdu.kind == EventType::RoomMember {
|
||||
let target_user_id = UserId::try_from(state_key.clone()).map_err(|e| {
|
||||
warn!("Invalid user id in send_join response: {}: {}", state_key, e);
|
||||
warn!(
|
||||
"Invalid user id in send_join response: {}: {}",
|
||||
state_key, e
|
||||
);
|
||||
Error::BadServerResponse("Invalid user id in send_join response.")
|
||||
})?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue