(fix) use the source's domain if none is defined (fixes #3523)

This commit is contained in:
Ludovic Marcotte authored and Francis Lachapelle committed 2017-01-06 20:58:10 -05:00
1 parent 3484cd570c
commit 727c7ed89f
1 file changed
+4 -1
+4 -1
View File
@@ -846,8 +846,11 @@ static Class NSNullK;
{
currentSource = [_sources objectForKey: sourceID];
// Use the provided domain during the lookup. If none is defined, use the source's one
// so if there's a match based on the source's domain, the user ID will be associated
// to the right source.
userEntry = [currentSource lookupContactEntryWithUIDorEmail: theUID
inDomain: theDomain];
inDomain: (theDomain ? theDomain : [currentSource domain])];
if (userEntry)
{
[theCurrentUser setObject: sourceID forKey: @"SOGoSource"];