Skip to content

Commit

Permalink
extending updates correctly(probably) with InvitedUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
rs-pro0 committed Apr 28, 2024
1 parent 4704705 commit 31bdf2d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/grammers-mtsender/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,16 @@ impl<T: Transport, M: Mtp> Sender<T, M> {
}
.into(),
),
Err(_) => {
warn!(
"telegram sent updates that failed to be deserialized: {}",
e
);
None
}
Err(_) => match tl::types::messages::InvitedUsers::from_bytes(update) {
Ok(u) => Some(u.updates),
Err(_) => {
warn!(
"telegram sent updates that failed to be deserialized: {}",
e
);
None
}
},
}
}
}
Expand Down

0 comments on commit 31bdf2d

Please sign in to comment.