mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: Failed to modify UID and obtain result 0
This commit is contained in:
parent
ec132d224e
commit
64b7b00253
@ -10,7 +10,7 @@ import kotlin.coroutines.resume
|
|||||||
internal object ContactHelper {
|
internal object ContactHelper {
|
||||||
suspend fun getUinByUidAsync(uid: String): String {
|
suspend fun getUinByUidAsync(uid: String): String {
|
||||||
if (uid.isBlank() || uid == "0") {
|
if (uid.isBlank() || uid == "0") {
|
||||||
return "-1"
|
return "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
val kernelService = NTServiceFetcher.kernelService
|
val kernelService = NTServiceFetcher.kernelService
|
||||||
@ -20,7 +20,7 @@ internal object ContactHelper {
|
|||||||
sessionService.uixConvertService.getUin(hashSetOf(uid)) {
|
sessionService.uixConvertService.getUin(hashSetOf(uid)) {
|
||||||
continuation.resume(it)
|
continuation.resume(it)
|
||||||
}
|
}
|
||||||
}[uid]?.toString() ?: "-1"
|
}[uid]?.toString() ?: "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun getUidByUinAsync(peerId: Long): String {
|
suspend fun getUidByUinAsync(peerId: Long): String {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user