Also use weakEquals on Addresses to prevent future issue
This commit is contained in:
parent
04093860b5
commit
f4f59cbae6
2 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ public class GroupInfoAdapter extends BaseAdapter {
|
|||
} else if (mChatRoom != null) {
|
||||
boolean found = false;
|
||||
for (Participant p : mChatRoom.getParticipants()) {
|
||||
if (p.getAddress().asStringUriOnly().equals(ca.getAddress().asStringUriOnly())) {
|
||||
if (p.getAddress().weakEqual(ca.getAddress())) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -249,7 +249,7 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
|||
for (Participant p : mChatRoom.getParticipants()) {
|
||||
boolean found = false;
|
||||
for (ContactAddress c : mParticipants) {
|
||||
if (c.getAddress().asStringUriOnly().equals(p.getAddress().asStringUriOnly())) {
|
||||
if (c.getAddress().weakEqual(p.getAddress())) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
|||
for (ContactAddress c : mParticipants) {
|
||||
boolean found = false;
|
||||
for (Participant p : mChatRoom.getParticipants()) {
|
||||
if (p.getAddress().asStringUriOnly().equals(c.getAddress().asStringUriOnly())) {
|
||||
if (p.getAddress().weakEqual(c.getAddress())) {
|
||||
// Admin rights
|
||||
if (c.isAdmin() != p.isAdmin()) {
|
||||
mChatRoom.setParticipantAdminStatus(p, c.isAdmin());
|
||||
|
|
Loading…
Reference in a new issue