mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-13 21:40:53 +00:00
Don't use envelope to determine friend request
This commit is contained in:
parent
73ec256745
commit
a7ea2f01a2
@ -292,7 +292,7 @@ public class PushDecryptJob extends BaseJob implements InjectableType {
|
||||
acceptFriendRequestIfNeeded(content);
|
||||
|
||||
// Loki - Session requests
|
||||
handleSessionRequestIfNeeded(envelope, content);
|
||||
handleSessionRequestIfNeeded(content);
|
||||
|
||||
// Loki - Store pre key bundle
|
||||
// We shouldn't store it if it's a pairing message
|
||||
@ -1226,8 +1226,8 @@ public class PushDecryptJob extends BaseJob implements InjectableType {
|
||||
becomeFriendsWithContact(content.getSender(), true, false);
|
||||
}
|
||||
|
||||
private void handleSessionRequestIfNeeded(@NonNull SignalServiceEnvelope envelope, @NonNull SignalServiceContent content) {
|
||||
if (envelope.isFriendRequest() && isSessionRequest(content)) {
|
||||
private void handleSessionRequestIfNeeded(@NonNull SignalServiceContent content) {
|
||||
if (content.isFriendRequest() && isSessionRequest(content)) {
|
||||
// TODO: Check if member is in one of our private groups
|
||||
boolean isInOneOfOurGroups = false;
|
||||
if (isInOneOfOurGroups) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user