mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14:21 +01:00
enostr: rename to_bech to npub
a bit more clear as to what this is
This commit is contained in:
@@ -348,7 +348,7 @@ impl PostBuffer {
|
||||
for (cur_end_ind, mention_ind) in self.mention_ends.iter().rev() {
|
||||
if let Some(info) = self.mentions.get(mention_ind) {
|
||||
if let MentionType::Finalized(pk) = info.mention_type {
|
||||
if let Some(bech) = pk.to_bech() {
|
||||
if let Some(bech) = pk.npub() {
|
||||
if let Some(byte_range) =
|
||||
char_indices_to_byte(&out, info.start_index..*cur_end_ind)
|
||||
{
|
||||
|
||||
@@ -152,7 +152,7 @@ impl<'a, 'd> ProfileView<'a, 'd> {
|
||||
);
|
||||
|
||||
if ui.add(copy_key_widget(&pfp_rect)).clicked() {
|
||||
let to_copy = if let Some(bech) = self.pubkey.to_bech() {
|
||||
let to_copy = if let Some(bech) = self.pubkey.npub() {
|
||||
bech
|
||||
} else {
|
||||
error!("Could not convert Pubkey to bech");
|
||||
|
||||
Reference in New Issue
Block a user