public IObservable<IContactProfile> LookupContactByHandles(User user, ContactHandle[] contactHandles) { var keys = contactHandles.SelectMany(ch => ch.NormalizedHandle()) .ToArray(); return GetContactLookupFor(user) .Log(_logger, "GetContactDetails") .SelectMany(cl => cl.GetByContactKeys(keys)); }
public IObservable<IContactProfile> LookupContactByHandles(User user, ContactHandle[] contactHandles) { var keys = contactHandles.SelectMany(ch => ch.NormalizedHandle()) .ToArray(); var matchedContacts = _userContactMap[user.Id].GetByContactKeys(keys); //HACK: This should be able to return multiple values. -LC return matchedContacts.ToObservable(); }