Skip to content

Commit

Permalink
Smackable: improved carbon checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Jan 30, 2017
1 parent b829050 commit 65a38dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/yaxim/androidclient/service/SmackableImp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,10 @@ public void processPacket(Packet packet) {

int direction = ChatConstants.INCOMING;
Carbon cc = CarbonManager.getCarbon(msg);
if (cc != null && !msg.getFrom().equalsIgnoreCase(mConfig.jabberID)) {
Log.w(TAG, "Received illegal carbon from " + msg.getFrom() + ": " + cc.toXML());
cc = null;
}

// extract timestamp
long ts;
Expand Down

0 comments on commit 65a38dc

Please sign in to comment.