Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx Messenger Android
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
android
xx Messenger Android
Commits
917e8753
Commit
917e8753
authored
2 years ago
by
Kamal Bramwell
Browse files
Options
Downloads
Patches
Plain Diff
Call failVerifyingRequests() in init block of ContactsViewModel.
parent
25decc60
No related branches found
No related tags found
3 merge requests
!84
Version 2.92 build 629
,
!77
v2.9 b627
,
!74
FE-957: Requests stuck verifying
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/io/xxlabs/messenger/ui/global/ContactsViewModel.kt
+5
-5
5 additions, 5 deletions
...n/java/io/xxlabs/messenger/ui/global/ContactsViewModel.kt
with
5 additions
and
5 deletions
app/src/main/java/io/xxlabs/messenger/ui/global/ContactsViewModel.kt
+
5
−
5
View file @
917e8753
...
...
@@ -27,7 +27,6 @@ import io.xxlabs.messenger.repository.client.ClientRepository
import
io.xxlabs.messenger.requests.data.contact.ContactRequestData
import
io.xxlabs.messenger.requests.data.contact.ContactRequestsRepository
import
io.xxlabs.messenger.requests.data.contact.RequestMigrator
import
io.xxlabs.messenger.requests.data.group.InvitationMigrator
import
io.xxlabs.messenger.support.extensions.combineWith
import
io.xxlabs.messenger.support.extensions.toBase64String
import
io.xxlabs.messenger.support.isMockVersion
...
...
@@ -77,6 +76,11 @@ class ContactsViewModel @Inject constructor(
init
{
Timber
.
v
(
"isAuthCallbackRegistered: ${isAuthCallbackRegistered()}"
)
migrateOldRequests
()
// The app has presumably had a fresh launch.
// Fail requests that haven't verified yet, so they may be retried manually by user.
failVerifyingRequests
()
if
(
BuildConfig
.
DEBUG
)
listContacts
()
}
...
...
@@ -97,10 +101,6 @@ class ContactsViewModel @Inject constructor(
fun
registerAuthCallback
()
{
Timber
.
v
(
"[MAIN] Registering auth callback..."
)
if
(!
isAuthCallbackRegistered
())
{
// The app has presumably had a fresh launch.
// Fail requests that haven't verified yet, so they may be retried manually by user.
failVerifyingRequests
()
Timber
.
v
(
"[MAIN] nor initialized, initializing network callback..."
)
subscriptions
.
add
(
repo
.
registerAuthCallback
(
...
...
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