From 1a830c23b5204c3932188f56bac6444f64e8e195 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 20 Jun 2021 00:00:00 +0000 Subject: [PATCH] Do not hide outgoing messages from contact requests Normally they should not end up in contact requests, but if they do, we want to show them. Otherwise it is completely impossible to see them until the chat is moved out of contact requests. --- src/chat.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 4e795c10a..eedf11608 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -1949,13 +1949,12 @@ pub async fn get_chat_msgs( ON m.chat_id=chats.id LEFT JOIN contacts ON m.from_id=contacts.id - WHERE m.from_id!=1 -- 1=DC_CONTACT_ID_SELF - AND m.from_id!=2 -- 2=DC_CONTACT_ID_INFO + WHERE m.from_id!=? AND m.hidden=0 AND chats.blocked=2 AND contacts.blocked=0 ORDER BY m.timestamp,m.id;", - paramsv![], + paramsv![DC_CONTACT_ID_INFO], process_row, process_rows, )