mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Fix check for empty ids when receiving intents
This commit is contained in:
@@ -579,8 +579,8 @@ object IntentUtils {
|
||||
return null
|
||||
}
|
||||
|
||||
if (intent.extras?.getString("id") == null) {
|
||||
intent.putExtra("id", UUID.randomUUID().toString().substring(0, 6))
|
||||
if (intent.extras?.getString("id") == null || intent.extras?.getString("id") == "") {
|
||||
intent.putExtra("id", UUID.randomUUID().toString())
|
||||
}
|
||||
|
||||
val id = intent.extras?.getString("id") ?: ""
|
||||
|
||||
Reference in New Issue
Block a user