rustfmt chathistory TARGETS
This commit is contained in:
parent
ee83298853
commit
0578b63bd6
1 changed files with 4 additions and 1 deletions
|
|
@ -187,7 +187,10 @@ impl Command for ChatHistory {
|
||||||
};
|
};
|
||||||
if key.starts_with('#') {
|
if key.starts_with('#') {
|
||||||
if s.is_member(uid, key) {
|
if s.is_member(uid, key) {
|
||||||
let name = buf.back().map(|m| m.target.clone()).unwrap_or_else(|| key.clone());
|
let name = buf
|
||||||
|
.back()
|
||||||
|
.map(|m| m.target.clone())
|
||||||
|
.unwrap_or_else(|| key.clone());
|
||||||
targets.push((name, ts));
|
targets.push((name, ts));
|
||||||
}
|
}
|
||||||
} else if let Some(rest) = key.strip_prefix('\0') {
|
} else if let Some(rest) = key.strip_prefix('\0') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue