From ef2fa1e1ae0a925efcf017ddaffa3aa482d94a18 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Sun, 5 Apr 2020 10:33:35 +0200 Subject: [PATCH] In direct sharing create list using DC_GCL_FOR_FORWARDING|DC_GCL_NO_SPECIALS --- .../thoughtcrime/securesms/service/DirectShareService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/service/DirectShareService.java b/src/org/thoughtcrime/securesms/service/DirectShareService.java index 6591dc158..16ee5ac80 100644 --- a/src/org/thoughtcrime/securesms/service/DirectShareService.java +++ b/src/org/thoughtcrime/securesms/service/DirectShareService.java @@ -41,7 +41,11 @@ public class DirectShareService extends ChooserTargetService { ComponentName componentName = new ComponentName(this, ShareActivity.class); ApplicationDcContext dcContext = DcHelper.getContext(this); - DcChatlist chatlist = dcContext.getChatlist(DcContext.DC_GCL_ADD_ALLDONE_HINT, null, 0); + DcChatlist chatlist = dcContext.getChatlist( + DcContext.DC_GCL_ADD_ALLDONE_HINT | DcContext.DC_GCL_FOR_FORWARDING | DcContext.DC_GCL_NO_SPECIALS, + null, + 0 + ); int max = 4; if (chatlist.getCnt() < max) { max = chatlist.getCnt();