fix: Synchronise self-chat

It just didn't work before, sync messages were not generated.
This commit is contained in:
iequidoo
2023-11-03 02:22:42 -03:00
committed by iequidoo
parent f4753862f1
commit e923983dca
2 changed files with 10 additions and 4 deletions

View File

@@ -1877,7 +1877,7 @@ impl Chat {
Chattype::Single => {
let mut r = None;
for contact_id in get_chat_contacts(context, self.id).await? {
if contact_id == ContactId::SELF {
if contact_id == ContactId::SELF && !self.is_self_talk() {
continue;
}
if r.is_some() {