mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 17:08:34 +03:00
Optimize
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
0f6b7cf580
commit
85ce06a9a9
1 changed files with 7 additions and 4 deletions
|
@ -751,10 +751,13 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||
|
||||
} else {
|
||||
boolean foundRealMessage = false;
|
||||
for (int i = 0; i < chatMessageList.size(); i++) {
|
||||
if (TextUtils.isEmpty(chatMessageList.get(i).getSystemMessage())) {
|
||||
foundRealMessage = true;
|
||||
break;
|
||||
|
||||
if (conversationUser.hasSpreedCapabilityWithName("system-messages")) {
|
||||
for (int i = 0; i < chatMessageList.size(); i++) {
|
||||
if (TextUtils.isEmpty(chatMessageList.get(i).getSystemMessage())) {
|
||||
foundRealMessage = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue