@@ -201,9 +201,7 @@ impl<'a, 'd> PostView<'a, 'd> {
|
|||||||
cursor_index: usize,
|
cursor_index: usize,
|
||||||
textedit_output: &TextEditOutput,
|
textedit_output: &TextEditOutput,
|
||||||
) {
|
) {
|
||||||
let mention = if let Some(mention) = self.draft.buffer.get_mention(cursor_index) {
|
let Some(mention) = self.draft.buffer.get_mention(cursor_index) else {
|
||||||
mention
|
|
||||||
} else {
|
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -247,9 +245,7 @@ impl<'a, 'd> PostView<'a, 'd> {
|
|||||||
hint_rect
|
hint_rect
|
||||||
};
|
};
|
||||||
|
|
||||||
let res = if let Ok(res) = self.note_context.ndb.search_profile(txn, mention_str, 10) {
|
let Ok(res) = self.note_context.ndb.search_profile(txn, mention_str, 10) else {
|
||||||
res
|
|
||||||
} else {
|
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user