mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 03:29:28 +01:00
set default emoji only when status icon is null
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
1347ec29c4
commit
25846fe23f
@ -58,7 +58,7 @@ data class Conversation(
|
|||||||
@JsonField(name = ["actorType"])
|
@JsonField(name = ["actorType"])
|
||||||
var actorType: String = "",
|
var actorType: String = "",
|
||||||
|
|
||||||
var password: String? = null, //check if this can be removed.Does not belong to api response but is used internally?
|
var password: String? = null, // check if this can be removed.Does not belong to api response but is used internally?
|
||||||
|
|
||||||
@JsonField(name = ["isFavorite"])
|
@JsonField(name = ["isFavorite"])
|
||||||
var favorite: Boolean = false,
|
var favorite: Boolean = false,
|
||||||
|
@ -176,7 +176,9 @@ class SetStatusDialogFragment :
|
|||||||
|
|
||||||
setupGeneralStatusOptions()
|
setupGeneralStatusOptions()
|
||||||
|
|
||||||
binding.emoji.setText(getString(R.string.default_emoji))
|
if (currentStatus?.icon == null) {
|
||||||
|
binding.emoji.setText(getString(R.string.default_emoji))
|
||||||
|
}
|
||||||
|
|
||||||
binding.clearStatus.setOnClickListener { clearStatus() }
|
binding.clearStatus.setOnClickListener { clearStatus() }
|
||||||
binding.setStatus.setOnClickListener { setStatusMessage() }
|
binding.setStatus.setOnClickListener { setStatusMessage() }
|
||||||
|
@ -51,7 +51,7 @@ class ConversationConversionTest(
|
|||||||
val conversationEntity = conversationJson.asEntity(1)
|
val conversationEntity = conversationJson.asEntity(1)
|
||||||
assertNotNull(conversationEntity)
|
assertNotNull(conversationEntity)
|
||||||
|
|
||||||
val apiVersion : Int = jsonFileName.substringAfterLast("APIv").first().digitToInt()
|
val apiVersion: Int = jsonFileName.substringAfterLast("APIv").first().digitToInt()
|
||||||
|
|
||||||
checkConversationEntity(conversationEntity, apiVersion)
|
checkConversationEntity(conversationEntity, apiVersion)
|
||||||
|
|
||||||
@ -61,10 +61,7 @@ class ConversationConversionTest(
|
|||||||
checkConversationEntity(conversationEntityConvertedBack, apiVersion)
|
checkConversationEntity(conversationEntityConvertedBack, apiVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkConversationEntity(
|
private fun checkConversationEntity(conversationEntity: ConversationEntity, apiVersion: Int) {
|
||||||
conversationEntity: ConversationEntity,
|
|
||||||
apiVersion: Int
|
|
||||||
) {
|
|
||||||
assertEquals("1@juwd77g6", conversationEntity.internalId)
|
assertEquals("1@juwd77g6", conversationEntity.internalId)
|
||||||
assertEquals(1, conversationEntity.accountId)
|
assertEquals(1, conversationEntity.accountId)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user