Skip to content
Snippets Groups Projects
Commit 5b7805c5 authored by Adrien Béraud's avatar Adrien Béraud Committed by Adrien Béraud
Browse files

Account: replace existing request with conversation

Change-Id: Ief85f975d1c825fe4fcb37623cccf744d409207c
parent 39b4518e
No related branches found
No related tags found
No related merge requests found
...@@ -671,6 +671,11 @@ class Account( ...@@ -671,6 +671,11 @@ class Account(
if (!conversation.isSwarm) { if (!conversation.isSwarm) {
val contact = getContactFromCache(request.from) val contact = getContactFromCache(request.from)
conversation.addRequestEvent(request, contact) conversation.addRequestEvent(request, contact)
} else {
val removed = pending.remove(request.from.uri)
if (removed != null && removed.request == null) {
Log.w(TAG, "Replaced pending contact ${request.from.uri} with pending conversation request $key")
}
} }
pendingChanged() pendingChanged()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment