Skip to content

Commit

Permalink
'#2275: Fix WhatsApp call status (missed/refused were swapped).
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Aug 2, 2024
1 parent c2d9109 commit b50713a
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 b50713a

Please sign in to comment.