Skip to content
Snippets Groups Projects
Commit 2c4f82e6 authored by Pierre Nicolas's avatar Pierre Nicolas :joy:
Browse files

conversation_details: don't show banned members

GitLab: #1748
Change-Id: Ic9f1a731b9954fd87fde5f4e861c8dfa4279eb54
parent ac9ad94c
No related branches found
No related tags found
No related merge requests found
...@@ -307,7 +307,7 @@ class AccountService( ...@@ -307,7 +307,7 @@ class AccountService(
var contact = conversation.findContact(uri) var contact = conversation.findContact(uri)
if (contact == null) { if (contact == null) {
contact = account.getContactFromCache(uri) contact = account.getContactFromCache(uri)
conversation.addContact(contact, role) if (role != MemberRole.BANNED) conversation.addContact(contact, role)
} }
if (!lastDisplayed.isNullOrEmpty()) { if (!lastDisplayed.isNullOrEmpty()) {
if (contact.isUser) { if (contact.isUser) {
...@@ -1472,7 +1472,7 @@ class AccountService( ...@@ -1472,7 +1472,7 @@ class AccountService(
var contact = conversation.findContact(memberUri) var contact = conversation.findContact(memberUri)
if (contact == null) { if (contact == null) {
contact = account.getContactFromCache(memberUri) contact = account.getContactFromCache(memberUri)
conversation.addContact(contact, role) if (role != MemberRole.BANNED) conversation.addContact(contact, role)
} }
} }
if (!conversation.lastElementLoadedSubject.hasValue()) if (!conversation.lastElementLoadedSubject.hasValue())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment