notes to self

This commit is contained in:
nnduc
2026-10-29 13:17:40 +07:00
parent 1ce93d883b
commit 5f37fcfe7a
4 changed files with 72 additions and 25 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ pub async fn prepare_chats(ctx: &Ctx) -> String {
let chats = db::open_chats(ctx.db(), &me).await.unwrap_or_default();
let mut html = String::new();
for jid in chats.iter().rev() {
if utils::validate_jid(jid) && *jid != me {
if utils::validate_jid(jid) {
html.push_str(&prepare_chat(ctx, jid).await);
}
}
@@ -168,7 +168,7 @@ pub async fn refresh_item(ctx: &Ctx, jid: &str) {
pub async fn open(ctx: &Ctx, jid: &str, and_show: bool, history: bool) {
let me = ctx.jid();
if !utils::validate_jid(jid) || jid == me {
if !utils::validate_jid(jid) {
return;
}
if history {