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