Commit e3c54027 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

presence: filter banned contacts

This patch filters out banned contacts when making subscriptions for
contact presence.

Change-Id: I86158136317bfb8eebf1b1345eab473f0d334fb1
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent d0143172
......@@ -40,7 +40,7 @@ class PresenceService {
}
func subscribeBuddies(withAccount account: AccountModel, withContacts contacts: [ContactModel]) {
for contact in contacts {
for contact in contacts where !contact.banned {
subscribeBuddy(withAccountId: account.id,
withUri: contact.ringId,
withFlag: true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment