Don't activate contacts on incoming streams.

This leaves the contact and the introduction session in inconsistent states.
This commit is contained in:
akwizgran
2016-04-25 16:11:15 +01:00
parent 3200a9f8f8
commit 2fddec85dd

View File

@@ -134,9 +134,6 @@ class KeyManagerImpl implements KeyManager, Service, EventListener {
Transaction txn = db.startTransaction(false);
try {
ctx = m.getStreamContext(txn, tag);
// Activate the contact if not already active
if (ctx != null && !activeContacts.containsKey(ctx.getContactId()))
db.setContactActive(txn, ctx.getContactId(), true);
txn.setComplete();
} finally {
db.endTransaction(txn);