mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-16 19:41:57 +00:00
finalize renames, ui alerts
This commit is contained in:
+2
-2
@@ -2070,7 +2070,7 @@ data class LocalProfile(
|
||||
val peerType: ChatPeerType? = null,
|
||||
val localBadge: LocalBadge? = null,
|
||||
val simplexName: SimplexNameClaim? = null,
|
||||
val contactDomainVerification: Boolean? = null
|
||||
val contactNameVerification: Boolean? = null
|
||||
): NamedChat {
|
||||
val profileViewName: String = localAlias.ifEmpty { if (fullName == "" || displayName == fullName) displayName else "$displayName ($fullName)" }
|
||||
|
||||
@@ -2200,7 +2200,7 @@ data class GroupInfo (
|
||||
val chatTags: List<Long>,
|
||||
val chatItemTTL: Long?,
|
||||
override val localAlias: String,
|
||||
val groupDomainVerification: Boolean? = null,
|
||||
val groupNameVerification: Boolean? = null,
|
||||
): SomeChat, NamedChat {
|
||||
override val chatType get() = ChatType.Group
|
||||
override val id get() = "#$groupId"
|
||||
|
||||
+2
-2
@@ -761,13 +761,13 @@ fun ChatInfoHeader(cInfo: ChatInfo, contact: Contact) {
|
||||
if (contactDomain != null && contact.profile.simplexName?.proof != null) {
|
||||
SimplexNameView(
|
||||
name = contactDomain,
|
||||
verification = contact.profile.contactDomainVerification,
|
||||
verification = contact.profile.contactNameVerification,
|
||||
autoVerify = chatModel.controller.appPrefs.privacyVerifySimplexNames.get(),
|
||||
verify = {
|
||||
val rhId = chatModel.remoteHostId()
|
||||
chatModel.controller.apiVerifyContactName(rhId, contact.contactId)?.let { (ct, reason) ->
|
||||
chatModel.chatsContext.updateContact(rhId, ct)
|
||||
ct.profile.contactDomainVerification to reason
|
||||
ct.profile.contactNameVerification to reason
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
+2
-2
@@ -979,13 +979,13 @@ private fun GroupChatInfoHeader(cInfo: ChatInfo, groupInfo: GroupInfo) {
|
||||
if (groupName != null && access.simplexName?.proof != null) {
|
||||
SimplexNameView(
|
||||
name = groupName,
|
||||
verification = groupInfo.groupDomainVerification,
|
||||
verification = groupInfo.groupNameVerification,
|
||||
autoVerify = chatModel.controller.appPrefs.privacyVerifySimplexNames.get(),
|
||||
verify = {
|
||||
val rhId = chatModel.remoteHostId()
|
||||
chatModel.controller.apiVerifyPublicGroupName(rhId, groupInfo.groupId)?.let { (gInfo, reason) ->
|
||||
chatModel.chatsContext.updateGroup(rhId, gInfo)
|
||||
gInfo.groupDomainVerification to reason
|
||||
gInfo.groupNameVerification to reason
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user