Fix bug with receiving GV2 message for previously unknown group.
This commit is contained in:
parent
1446af97a2
commit
33346d8033
2 changed files with 3 additions and 2 deletions
|
@ -532,7 +532,8 @@ public final class MessageContentProcessor {
|
|||
throws IOException, GroupChangeBusyException
|
||||
{
|
||||
try {
|
||||
GroupManager.updateGroupFromServer(context, groupV2.getMasterKey(), groupV2.getRevision(), content.getTimestamp(), groupV2.getSignedGroupChange());
|
||||
long timestamp = groupV2.getSignedGroupChange() != null ? content.getTimestamp() : content.getTimestamp() - 1;
|
||||
GroupManager.updateGroupFromServer(context, groupV2.getMasterKey(), groupV2.getRevision(), timestamp, groupV2.getSignedGroupChange());
|
||||
return true;
|
||||
} catch (GroupNotAMemberException e) {
|
||||
warn(String.valueOf(content.getTimestamp()), "Ignoring message for a group we're not in");
|
||||
|
|
|
@ -25,7 +25,7 @@ object GV2UpdateTransformer : ColumnTransformer {
|
|||
|
||||
return if (MmsSmsColumns.Types.isGroupV2(type) && MmsSmsColumns.Types.isGroupUpdate(type) && body != null) {
|
||||
val gv2ChangeDescription: UpdateDescription = MessageRecord.getGv2ChangeDescription(ApplicationDependencies.getApplication(), body, null)
|
||||
gv2ChangeDescription.staticSpannable.toString()
|
||||
gv2ChangeDescription.spannable.toString()
|
||||
} else {
|
||||
body ?: ""
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue