Skip to content

Commit

Permalink
Ensure latest V2 group state from server upon conversation open.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-signal authored and alex-signal committed May 14, 2020
1 parent 8084822 commit 36c43ed
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -159,6 +159,7 @@
import org.thoughtcrime.securesms.insights.InsightsLauncher;
import org.thoughtcrime.securesms.invites.InviteReminderModel;
import org.thoughtcrime.securesms.invites.InviteReminderRepository;
import org.thoughtcrime.securesms.jobs.RequestGroupV2InfoJob;
import org.thoughtcrime.securesms.jobs.RetrieveProfileJob;
import org.thoughtcrime.securesms.jobs.ServiceOutageDetectionJob;
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
Expand Down Expand Up @@ -498,6 +499,10 @@ protected void onResume() {
setGroupShareProfileReminder(recipientSnapshot);
calculateCharactersRemaining();

if (recipientSnapshot.getGroupId().isPresent() && recipientSnapshot.getGroupId().get().isV2()) {
ApplicationDependencies.getJobManager().add(new RequestGroupV2InfoJob(recipientSnapshot.getGroupId().get().requireV2()));
}

MessageNotifier.setVisibleThread(threadId);
markThreadAsRead();
}
Expand Down

0 comments on commit 36c43ed

Please sign in to comment.