mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
make sure getThreadId returns a Long
This commit is contained in:
@ -503,10 +503,10 @@ fun Context.getThreadId(address: String): Long {
|
||||
try {
|
||||
Threads.getOrCreateThreadId(this, address)
|
||||
} catch (e: Exception) {
|
||||
0
|
||||
0L
|
||||
}
|
||||
} else {
|
||||
0
|
||||
0L
|
||||
}
|
||||
}
|
||||
|
||||
@ -516,10 +516,10 @@ fun Context.getThreadId(addresses: Set<String>): Long {
|
||||
try {
|
||||
Threads.getOrCreateThreadId(this, addresses)
|
||||
} catch (e: Exception) {
|
||||
0
|
||||
0L
|
||||
}
|
||||
} else {
|
||||
0
|
||||
0L
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user