Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
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
Janne Mareike Koschinski
QuasselDroid-ng
Commits
385606db
Unverified
Commit
385606db
authored
1 year ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
fix: erranous "setup identity" dialog when connecting
parent
624e7b0e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3005
passed
1 year ago
Stage: test
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/de/kuschku/quasseldroid/ui/chat/ChatActivity.kt
+5
-3
5 additions, 3 deletions
...main/java/de/kuschku/quasseldroid/ui/chat/ChatActivity.kt
with
5 additions
and
3 deletions
app/src/main/java/de/kuschku/quasseldroid/ui/chat/ChatActivity.kt
+
5
−
3
View file @
385606db
...
...
@@ -53,6 +53,7 @@ import de.kuschku.libquassel.connection.QuasselSecurityException
import
de.kuschku.libquassel.protocol.*
import
de.kuschku.libquassel.protocol.coresetup.CoreSetupData
import
de.kuschku.libquassel.protocol.message.HandshakeMessage
import
de.kuschku.libquassel.quassel.syncables.Identity
import
de.kuschku.libquassel.quassel.syncables.interfaces.INetwork.PortDefaults.PORT_PLAINTEXT
import
de.kuschku.libquassel.quassel.syncables.interfaces.INetwork.PortDefaults.PORT_SSL
import
de.kuschku.libquassel.session.Error
...
...
@@ -806,9 +807,10 @@ class ChatActivity : ServiceBoundActivity(), SharedPreferences.OnSharedPreferenc
state
==
ConnectionState
.
CONNECTED
}.
filter
{
it
}
val
missingIdentity
:
Observable
<
Boolean
>
=
modelHelper
.
connectedSession
.
map
{
session
->
session
.
orNull
()
?.
identities
.
isNullOrEmpty
()
}
val
missingIdentity
:
Observable
<
Boolean
>
=
modelHelper
.
connectedSession
.
mapSwitchMap
(
ISession
::
liveIdentities
)
.
mapMap
(
Map
<
IdentityId
,
Identity
>
::
isEmpty
)
.
mapOrElse
(
false
)
val
missingFeatures
:
Observable
<
List
<
MissingFeature
>>
=
modelHelper
.
connectedSession
.
mapMap
{
session
->
...
...
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