Skip to content

Commit

Permalink
'#2375: Handle community message type 51 as generic management.
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Dec 2, 2024
1 parent e4945ad commit 833eb94
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import static iped.parsers.whatsapp.Message.MessageType.CHANNEL_ADDED_PRIVACY;
import static iped.parsers.whatsapp.Message.MessageType.COMMUNITY_CHANGED_ONLY_ADMINS_CAN_ADD;
import static iped.parsers.whatsapp.Message.MessageType.COMMUNITY_CHANGED_ALL_MEMBERS_CAN_ADD;
import static iped.parsers.whatsapp.Message.MessageType.COMMUNITY_MANAGEMENT_ACTION;
import static iped.parsers.whatsapp.Message.MessageType.COMMUNITY_WELCOME;
import static iped.parsers.whatsapp.Message.MessageType.CONTACT_MESSAGE;
import static iped.parsers.whatsapp.Message.MessageType.DELETED_BY_SENDER;
Expand Down Expand Up @@ -1516,6 +1517,10 @@ protected Message.MessageType decodeMessageType(int messageType, int gEventType,
result = USER_ADDED_TO_GROUP;
break;

case 51:
result = COMMUNITY_MANAGEMENT_ACTION;
break;

case 56:
// new group name change,
// DATA is {"previous_subject":"Old Name","new_subject":"New Name"}
Expand Down

0 comments on commit 833eb94

Please sign in to comment.