Delete pending scheduled messages when leaving a group.

This commit is contained in:
Cody Henthorne
2023-02-01 19:04:29 -05:00
committed by GitHub
parent a12a246e87
commit fe2d71fca0
2 changed files with 20 additions and 0 deletions

View File

@@ -134,6 +134,8 @@ public final class GroupManager {
throw new GroupChangeFailedException();
}
}
SignalDatabase.recipients().getByGroupId(groupId).ifPresent(id -> SignalDatabase.messages().deleteScheduledMessages(id));
}
@WorkerThread