Skip to content

Commit

Permalink
sepinf-inc#2282: Telegram chat with flag 'megagroup' decoded as groups
Browse files Browse the repository at this point in the history
  • Loading branch information
aberenguel committed Aug 7, 2024
1 parent 6107381 commit 6a41b97
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.util.List;
import java.util.Map;

import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
Expand Down Expand Up @@ -185,7 +186,7 @@ protected List<Chat> extractChatList() throws Exception {
ChatGroup group = new ChatGroup(chatId, cont, chatName);

Map<String, Object> m = androidDecoder.getAlltMetadata();
if ("true".equals(m.get("broadcast")) || "true".equals(m.get("megagroup"))) {
if ("true".equals(m.get("broadcast"))) {
group.setGroup(false);
group.setChannel(true);
}
Expand Down

0 comments on commit 6a41b97

Please # to comment.