In direct sharing create list using DC_GCL_FOR_FORWARDING|DC_GCL_NO_SPECIALS

This commit is contained in:
Hocuri
2020-04-05 10:33:35 +02:00
parent 398bc8381b
commit ef2fa1e1ae
@@ -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();