Skip to content
Snippets Groups Projects
Unverified Commit 2fddec85 authored by akwizgran's avatar akwizgran
Browse files

Don't activate contacts on incoming streams.

This leaves the contact and the introduction session in inconsistent states.
parent 3200a9f8
No related branches found
No related tags found
No related merge requests found
...@@ -134,9 +134,6 @@ class KeyManagerImpl implements KeyManager, Service, EventListener { ...@@ -134,9 +134,6 @@ class KeyManagerImpl implements KeyManager, Service, EventListener {
Transaction txn = db.startTransaction(false); Transaction txn = db.startTransaction(false);
try { try {
ctx = m.getStreamContext(txn, tag); 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(); txn.setComplete();
} finally { } finally {
db.endTransaction(txn); db.endTransaction(txn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment