We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10b44f3 commit fa967f1Copy full SHA for fa967f1
1 file changed
src/app/sync.rs
@@ -988,15 +988,15 @@ impl App {
988
989
let chats_map: std::collections::HashMap<i64, tl::enums::Chat> = chats
990
.into_iter()
991
- .filter_map(|c| {
+ .map(|c| {
992
let id = match &c {
993
tl::enums::Chat::Empty(ch) => ch.id,
994
tl::enums::Chat::Chat(ch) => ch.id,
995
tl::enums::Chat::Forbidden(ch) => ch.id,
996
tl::enums::Chat::Channel(ch) => ch.id,
997
tl::enums::Chat::ChannelForbidden(ch) => ch.id,
998
};
999
- Some((id, c))
+ (id, c)
1000
})
1001
.collect();
1002
0 commit comments