We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5abef2 commit 3b5468dCopy full SHA for 3b5468d
app/src/main/java/org/thoughtcrime/securesms/tokenpage/TokenPageViewModel.kt
@@ -237,9 +237,10 @@ class TokenPageViewModel @Inject constructor(
237
// Note: We pass this in to the token page so we can call it when we refresh the page.
238
private suspend fun getNodeData() {
239
withContext(Dispatchers.Default) {
240
- val myPublicKey = getLocalNumber(context)
+ val myPublicKey = prefs.getLocalNumber() ?: return@withContext
241
+
242
val getSwarmSetPromise: Promise<Set<Snode>, Exception> =
- SnodeAPI.getSwarm(myPublicKey!!)
243
+ SnodeAPI.getSwarm(myPublicKey)
244
245
val numSessionNodesInOurSwarm = try {
246
// Get the count of Session nodes in our swarm (technically in the range 1..10, but
0 commit comments