fix crash when sending giftwraps with amber

This commit is contained in:
greenart7c3 2023-10-18 09:07:08 -03:00
parent 904a50be1f
commit ece8998ba6

View File

@ -1721,7 +1721,8 @@ class Account(
LocalCache.consume(it, null)
}
val mineNote = LocalCache.getNoteIfExists(mine.first().id)
val id = mine.firstOrNull()?.id
val mineNote = if (id == null) null else LocalCache.getNoteIfExists(id)
signedEvents.wraps.forEach {
// Creates an alias