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) {
|
} else if (mChatRoom != null) {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
for (Participant p : mChatRoom.getParticipants()) {
|
for (Participant p : mChatRoom.getParticipants()) {
|
||||||
if (p.getAddress().asStringUriOnly().equals(ca.getAddress().asStringUriOnly())) {
|
if (p.getAddress().weakEqual(ca.getAddress())) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -249,7 +249,7 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
||||||
for (Participant p : mChatRoom.getParticipants()) {
|
for (Participant p : mChatRoom.getParticipants()) {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
for (ContactAddress c : mParticipants) {
|
for (ContactAddress c : mParticipants) {
|
||||||
if (c.getAddress().asStringUriOnly().equals(p.getAddress().asStringUriOnly())) {
|
if (c.getAddress().weakEqual(p.getAddress())) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -267,7 +267,7 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
||||||
for (ContactAddress c : mParticipants) {
|
for (ContactAddress c : mParticipants) {
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
for (Participant p : mChatRoom.getParticipants()) {
|
for (Participant p : mChatRoom.getParticipants()) {
|
||||||
if (p.getAddress().asStringUriOnly().equals(c.getAddress().asStringUriOnly())) {
|
if (p.getAddress().weakEqual(c.getAddress())) {
|
||||||
// Admin rights
|
// Admin rights
|
||||||
if (c.isAdmin() != p.isAdmin()) {
|
if (c.isAdmin() != p.isAdmin()) {
|
||||||
mChatRoom.setParticipantAdminStatus(p, c.isAdmin());
|
mChatRoom.setParticipantAdminStatus(p, c.isAdmin());
|
||||||
|
|
Loading…
Reference in a new issue