Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jami-client-ios
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
27
Issues
27
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-client-ios
Commits
ad2a648b
Commit
ad2a648b
authored
Apr 21, 2019
by
Kateryna Kostiuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: block contact
Change-Id: I977dff3066b5f6dfe1f682888f531e21500b8cbe
parent
ceb6027c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Ring/Ring/Services/ContactsService.swift
Ring/Ring/Services/ContactsService.swift
+8
-3
No files found.
Ring/Ring/Services/ContactsService.swift
View file @
ad2a648b
...
...
@@ -28,6 +28,7 @@ enum ContactServiceError: Error {
case
vCardSerializationFailed
case
loadVCardFailed
case
saveVCardFailed
case
removeContactFailed
}
class
ContactsService
{
...
...
@@ -225,10 +226,14 @@ class ContactsService {
func
removeContact
(
withUri
uri
:
String
,
ban
:
Bool
,
withAccountId
accountId
:
String
)
->
Observable
<
Void
>
{
return
Observable
.
create
{
[
unowned
self
]
observable
in
self
.
contactsAdapter
.
removeContact
(
withURI
:
uri
,
accountId
:
accountId
,
ban
:
ban
)
if
let
hash
=
JamiURI
.
init
(
schema
:
URIType
.
ring
,
infoHach
:
uri
)
.
hash
{
self
.
removeContactRequest
(
withRingId
:
hash
)
guard
let
hash
=
JamiURI
.
init
(
schema
:
URIType
.
ring
,
infoHach
:
uri
)
.
hash
else
{
observable
.
on
(
.
error
(
ContactServiceError
.
removeContactFailed
))
return
Disposables
.
create
{
}
}
self
.
contactsAdapter
.
removeContact
(
withURI
:
hash
,
accountId
:
accountId
,
ban
:
ban
)
self
.
removeContactRequest
(
withRingId
:
hash
)
observable
.
on
(
.
completed
)
return
Disposables
.
create
{
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment