Skip to content

Commit

Permalink
Update to layer 186
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Aug 26, 2024
1 parent 7e242fd commit c7234fe
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 23 deletions.
1 change: 1 addition & 0 deletions lib/grammers-client/src/types/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ impl From<Attribute> for tl::enums::DocumentAttribute {
w,
h,
preload_prefix_size: None,
video_start_ts: None,
}),
FileName(file_name) => {
Self::Filename(tl::types::DocumentAttributeFilename { file_name })
Expand Down
2 changes: 2 additions & 0 deletions lib/grammers-client/src/types/chat/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl Channel {
stories_hidden: false,
stories_hidden_min: false,
stories_unavailable: true,
signature_profiles: false,
join_to_send: false,
id: channel.id,
access_hash: Some(channel.access_hash),
Expand All @@ -86,6 +87,7 @@ impl Channel {
profile_color: None,
emoji_status: None,
level: None,
subscription_until_date: None,
},
}
} else {
Expand Down
4 changes: 3 additions & 1 deletion lib/grammers-client/src/types/chat/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ impl User {
stories_hidden: false,
stories_unavailable: true,
contact_require_premium: false,
bot_business: false,
bot_has_main_app: false,
id: empty.id,
access_hash: None,
first_name: None,
Expand All @@ -117,7 +119,7 @@ impl User {
stories_max_id: None,
color: None,
profile_color: None,
bot_business: false,
bot_active_users: None,
},
tl::enums::User::User(user) => user,
},
Expand Down
1 change: 1 addition & 0 deletions lib/grammers-client/src/types/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ impl Uploaded {
match &self.raw {
tl::enums::InputFile::File(f) => f.name.as_ref(),
tl::enums::InputFile::Big(f) => f.name.as_ref(),
tl::enums::InputFile::StoryDocument(_) => "",
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions lib/grammers-session/src/chat/hash_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ impl ChatHashCache {
MA::GiveawayLaunch => true,
MA::GiveawayResults(_) => true,
MA::BoostApply(_) => true,
MA::PaymentRefunded(c) => self.has_peer(&c.peer),
MA::GiftStars(_) => true,
}
}
}
Expand Down
Loading

0 comments on commit c7234fe

Please sign in to comment.