rename SearchResultsView => MentionPickerView
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ use crate::draft::{Draft, Drafts, MentionHint};
|
||||
#[cfg(not(target_os = "android"))]
|
||||
use crate::media_upload::{nostrbuild_nip96_upload, MediaPath};
|
||||
use crate::post::{downcast_post_buffer, MentionType, NewPost};
|
||||
use crate::ui::search_results::SearchResultsView;
|
||||
use crate::ui::mentions_picker::MentionPickerView;
|
||||
use crate::ui::{self, Preview, PreviewConfig};
|
||||
use crate::Result;
|
||||
|
||||
@@ -273,7 +273,7 @@ impl<'a, 'd> PostView<'a, 'd> {
|
||||
return;
|
||||
};
|
||||
|
||||
let resp = SearchResultsView::new(
|
||||
let resp = MentionPickerView::new(
|
||||
self.note_context.img_cache,
|
||||
self.note_context.ndb,
|
||||
txn,
|
||||
@@ -282,7 +282,7 @@ impl<'a, 'd> PostView<'a, 'd> {
|
||||
.show_in_rect(hint_rect, ui);
|
||||
|
||||
match resp {
|
||||
ui::search_results::SearchResultsResponse::SelectResult(selection) => {
|
||||
ui::mentions_picker::MentionPickerResponse::SelectResult(selection) => {
|
||||
if let Some(hint_index) = selection {
|
||||
if let Some(pk) = res.get(hint_index) {
|
||||
let record = self.note_context.ndb.get_profile_by_pubkey(txn, pk);
|
||||
@@ -297,7 +297,7 @@ impl<'a, 'd> PostView<'a, 'd> {
|
||||
}
|
||||
}
|
||||
|
||||
ui::search_results::SearchResultsResponse::DeleteMention => {
|
||||
ui::mentions_picker::MentionPickerResponse::DeleteMention => {
|
||||
self.draft.buffer.delete_mention(mention.index)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user