Tigase Forge
Dashboards
Projects
Pull Requests
Issues
Builds
Packages
Code Search
Text
Files
Symbols
halcyon
Code
Files
Commits
Branches
Tags
Code Comments
Code Compare
Pull Requests
Issues
List
Boards
Iterations
Builds
Statistics
Code
Pull Request
Issue
Build
Child Projects
Projects
tigase
_libraries
halcyon
Commits
8d8e1651
ctrl
k
Sign In
Fixed devices list update
#85
Andrzej Wójcik (Tigase)
committed
6 months ago
8d8e1651
1 parent
c8413d4f
Push To GitHub
halcyon-core/src/omemoMain/kotlin/tigase/halcyon/core/xmpp/modules/omemo/OMEMOModule.kt
■ ■ ■ ■ ■ ■
skipped 166 lines
167
167
}
168
168
}
169
169
}
170
+
171
+
val localDeviceId = protocolStore.getLocalRegistrationId();
172
+
if (!deviceList.contains(localDeviceId)) {
173
+
publishDeviceList(deviceList + listOf(localDeviceId)).response {
174
+
it.onFailure {
175
+
log.warning(it, { "failed to publish updated device list" })
176
+
}
177
+
it.onSuccess {
178
+
log.fine("published updated device list successfully")
179
+
}
180
+
}.send();
181
+
}
170
182
} else {
171
183
devices[jid.bareJID] = deviceList;
172
184
}
skipped 495 lines
All occurrences
halcyon-core/src/omemoMain/kotlin/tigase/halcyon/core/xmpp/modules/omemo/OMEMOModule.kt
Please wait...
Page is in error, reload to recover