chore: rewrite the backend (not tested) (#203)

* wip: refactor

* refactor

* clean up

* .

* rename

* add relay auth

* .

* .

* optimize

* .

* clean up

* add encryption crate

* .

* .

* .

* .

* .

* add encryption crate

* .

* refactor nip4e

* .

* fix endless loop

* fix metadata fetching
This commit is contained in:
reya
2025-11-11 09:09:33 +07:00
committed by GitHub
parent a1a0a7ecd4
commit 512834b640
68 changed files with 3503 additions and 3194 deletions

View File

@@ -541,13 +541,10 @@ impl Element for TextElement {
let mut bounds = bounds;
let (display_text, text_color) = if is_empty {
(
Rope::from_str_small(placeholder.as_str()),
cx.theme().text_muted,
)
(Rope::from(placeholder.as_str()), cx.theme().text_muted)
} else if state.masked {
(
Rope::from_str_small("*".repeat(text.chars_count()).as_str()),
Rope::from("*".repeat(text.chars_count()).as_str()),
cx.theme().text,
)
} else {