Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-07-12 16:53:07 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4197259d2a9d31c85855f459aff111b4a1a41b3b
4197259d
1 parent
154a5428
fix badge persisting for different users
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
4197259
...
...
@@ -1192,6 +1192,8 @@ public class swiftApi {
verifyTicketCallback
(
tempResponse
);
swiftApi
()
.
getProfileAsync
(
getProfileCallback
)
}
else
{
verifyTicketCallback
(
nil
)
}
...
...
@@ -1204,6 +1206,17 @@ public class swiftApi {
print
(
"===================="
)
verifyTicketCallback
(
nil
)
}
func
getProfileCallback
(
_
profileData
:
swiftApi
.
ProfileModel
?)
->
Void
{
if
(
profileData
!=
nil
)
{
DispatchQueue
.
main
.
async
{
swiftApi
()
.
setConsumer
(
profileData
??
swiftApi
.
ProfileModel
())
swiftApi
()
.
setUserTag
(
profileData
?
.
badge
??
""
)
}
}
else
{
}
}
}
}
...
...
Please
register
or
login
to post a comment