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.
This commit is contained in:
link2xt
2021-06-20 00:00:00 +00:00
parent 18ace81842
commit 1a830c23b5

View File

@@ -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,
)