Too many words (#2582)

This commit is contained in:
gerryfrancis
2021-08-02 15:31:41 +02:00
committed by GitHub
parent 3712524765
commit fdf3397437

View File

@@ -1157,7 +1157,7 @@ impl Chat {
} }
// the whole list of messages referenced may be huge; // the whole list of messages referenced may be huge;
// only use the oldest and and the parent message // only use the oldest and the parent message
let parent_references = parent_references let parent_references = parent_references
.find(' ') .find(' ')
.and_then(|n| parent_references.get(..n)) .and_then(|n| parent_references.get(..n))
@@ -1313,7 +1313,7 @@ impl rusqlite::types::FromSql for ChatVisibility {
2 => ChatVisibility::Pinned, 2 => ChatVisibility::Pinned,
1 => ChatVisibility::Archived, 1 => ChatVisibility::Archived,
0 => ChatVisibility::Normal, 0 => ChatVisibility::Normal,
// fallback to to Normal for unknown values, may happen eg. on imports created by a newer version. // fallback to Normal for unknown values, may happen eg. on imports created by a newer version.
_ => ChatVisibility::Normal, _ => ChatVisibility::Normal,
} }
}) })