Fixed onNotifyReceived callback prototype, a parameter is now nullable (SDK change)
This commit is contained in:
parent
b438090092
commit
01b622decc
1 changed files with 2 additions and 2 deletions
|
@ -54,9 +54,9 @@ open class StatusViewModel : ViewModel() {
|
||||||
core: Core,
|
core: Core,
|
||||||
event: Event,
|
event: Event,
|
||||||
notifiedEvent: String,
|
notifiedEvent: String,
|
||||||
body: Content
|
body: Content?
|
||||||
) {
|
) {
|
||||||
if (body.type == "application" && body.subtype == "simple-message-summary" && body.size > 0) {
|
if (body?.type == "application" && body.subtype == "simple-message-summary" && body.size > 0) {
|
||||||
val data = body.utf8Text?.lowercase(Locale.getDefault())
|
val data = body.utf8Text?.lowercase(Locale.getDefault())
|
||||||
val voiceMail = data?.split("voice-message: ")
|
val voiceMail = data?.split("voice-message: ")
|
||||||
if ((voiceMail?.size ?: 0) >= 2) {
|
if ((voiceMail?.size ?: 0) >= 2) {
|
||||||
|
|
Loading…
Reference in a new issue