Get group record programatically instead of making user pass in the recipient.

This was the original function but i added in recipient to it. This is causing crashes and thus we just get the group record.
This commit is contained in:
Mikunj
2020-01-22 09:18:12 +11:00
parent 93a9f4c1dc
commit 6b38e5d799
3 changed files with 26 additions and 19 deletions

View File

@@ -92,7 +92,7 @@ public abstract class MessageRecord extends DisplayRecord {
if (isGroupUpdate() && isOutgoing()) {
return new SpannableString(context.getString(R.string.MessageRecord_you_updated_group));
} else if (isGroupUpdate()) {
return new SpannableString(GroupUtil.getDescription(context, getBody(), getRecipient()).toString(getIndividualRecipient()));
return new SpannableString(GroupUtil.getDescription(context, getBody()).toString(getIndividualRecipient()));
} else if (isGroupQuit() && isOutgoing()) {
return new SpannableString(context.getString(R.string.MessageRecord_left_group));
} else if (isGroupQuit()) {