Skip to content

Commit

Permalink
fix: bring the CR flow in accordance with the requirements
Browse files Browse the repository at this point in the history
Close #11121
  • Loading branch information
MishkaRogachev committed Jul 7, 2023
1 parent 7499182 commit 54057cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/app_service/service/message/service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,8 @@ QtObject:
error "error: received `chats` array for handling messages update is empty"
return

# Temporary commented until we provide appropriate flags on the `status-go` side to cover all sections.
# blocking contact deletes the chat on the `status-go` side, after unblocking it, `active` prop is still false
# that's the reason why the following check is commented out here.
# if (not chats[0].active):
# return
if (not chats[0].active):
return

self.bulkReplacePubKeysWithDisplayNames(messages)

Expand Down
2 changes: 1 addition & 1 deletion ui/app/AppLayouts/Chat/views/ChatMessagesView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Item {
}
}
header: {
if (!root.isContactBlocked && root.isOneToOne && root.rootStore.oneToOneChatContact) {
if ((!root.isContactBlocked || !root.isChatBlocked) && root.isOneToOne && root.rootStore.oneToOneChatContact) {
switch (root.rootStore.oneToOneChatContact.contactRequestState) {
case Constants.ContactRequestState.None: // no break
case Constants.ContactRequestState.Dismissed:
Expand Down
2 changes: 1 addition & 1 deletion vendor/status-go

0 comments on commit 54057cb

Please sign in to comment.