Skip to content

Commit 40461c1

Browse files
authored
Merge branch 'main' into release/2.1.13
2 parents e391340 + f7078b3 commit 40461c1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

api/src/main/java/com/getcode/model/TwitterUser.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.getcode.model
22

33
import android.webkit.MimeTypeMap
44
import com.codeinc.gen.user.v1.IdentityService
5-
import com.codeinc.gen.user.v1.friendChatIdOrNull
65
import com.codeinc.gen.user.v1.friendshipCostOrNull
76
import com.getcode.solana.keys.PublicKey
87
import com.getcode.utils.serializer.PublicKeyAsStringSerializer
@@ -55,7 +54,7 @@ data class TwitterUser(
5554
val currency = CurrencyCode.tryValueOf(it.currency) ?: return@let null
5655
Fiat(currency, it.nativeAmount)
5756
} ?: Fiat(currency = CurrencyCode.USD, amount = 1.00),
58-
isFriend = proto.isFriend,
57+
isFriend = runCatching { proto.isFriend }.getOrNull() ?: false,
5958
chatId = proto.friendChatId.value.toList()
6059
)
6160
}

0 commit comments

Comments
 (0)