Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Commits
6c1478d9
Commit
6c1478d9
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Add roundURL to GroupChatProcessor.Callback
parent
d597352d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!121
Update Bindings
,
!102
Release 1.0.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/XXClient/Callbacks/GroupChatProcessor.swift
+13
-5
13 additions, 5 deletions
Sources/XXClient/Callbacks/GroupChatProcessor.swift
with
13 additions
and
5 deletions
Sources/XXClient/Callbacks/GroupChatProcessor.swift
+
13
−
5
View file @
6c1478d9
...
@@ -8,13 +8,15 @@ public struct GroupChatProcessor {
...
@@ -8,13 +8,15 @@ public struct GroupChatProcessor {
msg
:
Data
,
msg
:
Data
,
receptionId
:
Data
,
receptionId
:
Data
,
ephemeralId
:
Int64
,
ephemeralId
:
Int64
,
roundId
:
Int64
roundId
:
Int64
,
roundUrl
:
String
)
{
)
{
self
.
decryptedMessage
=
decryptedMessage
self
.
decryptedMessage
=
decryptedMessage
self
.
msg
=
msg
self
.
msg
=
msg
self
.
receptionId
=
receptionId
self
.
receptionId
=
receptionId
self
.
ephemeralId
=
ephemeralId
self
.
ephemeralId
=
ephemeralId
self
.
roundId
=
roundId
self
.
roundId
=
roundId
self
.
roundUrl
=
roundUrl
}
}
public
var
decryptedMessage
:
GroupChatMessage
public
var
decryptedMessage
:
GroupChatMessage
...
@@ -22,6 +24,7 @@ public struct GroupChatProcessor {
...
@@ -22,6 +24,7 @@ public struct GroupChatProcessor {
public
var
receptionId
:
Data
public
var
receptionId
:
Data
public
var
ephemeralId
:
Int64
public
var
ephemeralId
:
Int64
public
var
roundId
:
Int64
public
var
roundId
:
Int64
public
var
roundUrl
:
String
}
}
public
init
(
public
init
(
...
@@ -58,28 +61,33 @@ extension GroupChatProcessor {
...
@@ -58,28 +61,33 @@ extension GroupChatProcessor {
receptionId
:
Data
?,
receptionId
:
Data
?,
ephemeralId
:
Int64
,
ephemeralId
:
Int64
,
roundId
:
Int64
,
roundId
:
Int64
,
roundUrl
:
String
?,
err
:
Error
?
err
:
Error
?
)
{
)
{
if
let
err
=
err
{
if
let
err
=
err
{
callback
.
handle
(
.
failure
(
err
as
NSError
))
callback
.
handle
(
.
failure
(
err
as
NSError
))
return
return
}
}
guard
let
decryptedMessage
=
decryptedMessage
else
{
guard
let
decryptedMessage
else
{
fatalError
(
"BindingsGroupChatProcessor received `nil` decryptedMessage"
)
fatalError
(
"BindingsGroupChatProcessor received `nil` decryptedMessage"
)
}
}
guard
let
msg
=
msg
else
{
guard
let
msg
else
{
fatalError
(
"BindingsGroupChatProcessor received `nil` msg"
)
fatalError
(
"BindingsGroupChatProcessor received `nil` msg"
)
}
}
guard
let
receptionId
=
receptionId
else
{
guard
let
receptionId
else
{
fatalError
(
"BindingsGroupChatProcessor received `nil` receptionId"
)
fatalError
(
"BindingsGroupChatProcessor received `nil` receptionId"
)
}
}
guard
let
roundUrl
else
{
fatalError
(
"BindingsGroupChatProcessor received `nil` roundUrl"
)
}
do
{
do
{
callback
.
handle
(
.
success
(
.
init
(
callback
.
handle
(
.
success
(
.
init
(
decryptedMessage
:
try
GroupChatMessage
.
decode
(
decryptedMessage
),
decryptedMessage
:
try
GroupChatMessage
.
decode
(
decryptedMessage
),
msg
:
msg
,
msg
:
msg
,
receptionId
:
receptionId
,
receptionId
:
receptionId
,
ephemeralId
:
ephemeralId
,
ephemeralId
:
ephemeralId
,
roundId
:
roundId
roundId
:
roundId
,
roundUrl
:
roundUrl
)))
)))
}
catch
{
}
catch
{
callback
.
handle
(
.
failure
(
error
as
NSError
))
callback
.
handle
(
.
failure
(
error
as
NSError
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment