notes to self
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user