Skip to content

Commit 4a440b0

Browse files
committed
Revert "Fix BotInlineSend updates breaking seq (#321)"
This reverts commit c631a42.
1 parent c631a42 commit 4a440b0

File tree

1 file changed

+1
-5
lines changed
  • lib/grammers-session/src/message_box

1 file changed

+1
-5
lines changed

lib/grammers-session/src/message_box/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pub(crate) use defs::Entry;
3434
pub use defs::{Gap, MessageBox};
3535
use defs::{NO_DATE, NO_PTS, NO_SEQ, POSSIBLE_GAP_TIMEOUT, PtsInfo, State};
3636
use grammers_tl_types as tl;
37-
use grammers_tl_types::enums::Update;
3837
use log::{debug, info, trace, warn};
3938
use std::cmp::Ordering;
4039
use std::collections::{HashMap, HashSet};
@@ -496,11 +495,8 @@ impl MessageBox {
496495
reset_deadlines_for.insert(entry);
497496
}
498497
if let Some(update) = update {
499-
// BotInlineSend updates are sent with `seq` != NO_SEQ. `seq` must be updated in
500-
// that case, otherwise every other BotInlineSend update will be counted as a gap
501-
// and dropped.
502-
any_pts_applied |= entry.is_some() || matches!(update, Update::BotInlineSend(_));
503498
result.push(update);
499+
any_pts_applied |= entry.is_some();
504500
}
505501
}
506502
self.reset_deadlines(&reset_deadlines_for, next_updates_deadline());

0 commit comments

Comments
 (0)