invitations: fix synchronization state
This patch fix issue when received non one to one swarm invitation
and it appears in synchronization state before being accepted.
Change-Id: Icbb9ab79f9dff85ececb7d0861ab2dc8dd8017dd
diff --git a/Ring/Ring/Services/RequestsService.swift b/Ring/Ring/Services/RequestsService.swift
index 76e3a32..6dbce08 100644
--- a/Ring/Ring/Services/RequestsService.swift
+++ b/Ring/Ring/Services/RequestsService.swift
@@ -391,10 +391,10 @@
} else { return }
}
/**
- if it conversation with one participant check profile.
+ if it is a core dialog check profile.
If profile exists it means we already accepted request and now request synchronizing.
*/
- if conversationRequest.isDialog(),
+ if conversationRequest.isCoredialog(),
let profile = self.getProfile(with: "ring:" + conversationRequest.participants.first!.jamiId, accountId: accountId) {
if let alias = profile.alias, !alias.isEmpty {
conversationRequest.name = alias