From 07c730098e56ed9e1e6be088193d4892674650cc Mon Sep 17 00:00:00 2001 From: kosyak Date: Sun, 13 Oct 2024 23:42:07 +0200 Subject: [PATCH] dont show annoying toast about history fetching policy --- .../siacs/conversations/services/XmppConnectionService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 88f637304..60cef8bfd 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -2500,7 +2500,9 @@ public class XmppConnectionService extends Service { query.setCallback(callback); callback.informUser(R.string.fetching_history_from_server); } else { - callback.informUser(R.string.not_fetching_history_retention_period); + if (conversation.getMode() != Conversational.MODE_SINGLE || !conversation.hasPermanentCounterpart()) { + callback.informUser(R.string.not_fetching_history_retention_period); + } } }