Skip to content

Commit

Permalink
Merge pull request #2276 from sepinf-inc/#2275_FixWhatsAppCallStatus
Browse files Browse the repository at this point in the history
Fix WhatsApp call status (missed/refused were swapped)
  • Loading branch information
lfcnassif authored Aug 2, 2024
2 parents c2d9109 + b50713a commit cd72b0f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ private void extractCalls(Connection conn, Map<Long, Chat> idToChat) throws SQLE
m.setMessageType(UNKNOWN_VIDEO_CALL);
if (call_result == 5) {
m.setMessageType(VIDEO_CALL);
} else if (call_result == 4) {
m.setMessageType(MISSED_VIDEO_CALL);
} else if (call_result == 2) {
m.setMessageType(MISSED_VIDEO_CALL);
} else if (call_result == 4) {
m.setMessageType(REFUSED_VIDEO_CALL);
} else if (call_result == 3) {
m.setMessageType(UNAVAILABLE_VIDEO_CALL);
Expand All @@ -231,9 +231,9 @@ private void extractCalls(Connection conn, Map<Long, Chat> idToChat) throws SQLE
m.setMessageType(UNKNOWN_VOICE_CALL);
if (call_result == 5) {
m.setMessageType(VOICE_CALL);
} else if (call_result == 4) {
m.setMessageType(MISSED_VOICE_CALL);
} else if (call_result == 2) {
m.setMessageType(MISSED_VOICE_CALL);
} else if (call_result == 4) {
m.setMessageType(REFUSED_VOICE_CALL);
} else if (call_result == 3) {
m.setMessageType(UNAVAILABLE_VOICE_CALL);
Expand Down

0 comments on commit cd72b0f

Please sign in to comment.