Skip to content

Commit 6796ff7

Browse files
committed
Non-async chat_group_member_timestamps
1 parent ba8dbc2 commit 6796ff7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/mimeparser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ impl MimeMessage {
18641864
/// Returns parsed `Chat-Group-Member-Timestamps` header contents.
18651865
///
18661866
/// Returns `None` if there is no such header.
1867-
pub async fn chat_group_member_timestamps(&self) -> Option<Vec<i64>> {
1867+
pub fn chat_group_member_timestamps(&self) -> Option<Vec<i64>> {
18681868
let now = time() + constants::TIMESTAMP_SENT_TOLERANCE;
18691869
self.get_header(HeaderDef::ChatGroupMemberTimestamps)
18701870
.map(|h| {

src/receive_imf.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,8 +2064,7 @@ async fn create_group(
20642064
chat_id_blocked = create_blocked;
20652065

20662066
// Create initial member list.
2067-
if let Some(chat_group_member_timestamps) = mime_parser.chat_group_member_timestamps().await
2068-
{
2067+
if let Some(chat_group_member_timestamps) = mime_parser.chat_group_member_timestamps() {
20692068
let expected_timestamps_count = to_ids.len() + past_ids.len();
20702069
if chat_group_member_timestamps.len() == expected_timestamps_count {
20712070
context
@@ -2274,8 +2273,7 @@ async fn apply_group_changes(
22742273
}
22752274
}
22762275

2277-
if let Some(ref chat_group_member_timestamps) = mime_parser.chat_group_member_timestamps().await
2278-
{
2276+
if let Some(ref chat_group_member_timestamps) = mime_parser.chat_group_member_timestamps() {
22792277
let expected_timestamps_count = to_ids.len() + past_ids.len();
22802278
if chat_group_member_timestamps.len() == expected_timestamps_count {
22812279
context

0 commit comments

Comments
 (0)