mirror of
https://github.com/oxen-io/session-android.git
synced 2025-07-12 06:58:35 +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);
|
acceptFriendRequestIfNeeded(content);
|
||||||
|
|
||||||
// Loki - Session requests
|
// Loki - Session requests
|
||||||
handleSessionRequestIfNeeded(envelope, content);
|
handleSessionRequestIfNeeded(content);
|
||||||
|
|
||||||
// Loki - Store pre key bundle
|
// Loki - Store pre key bundle
|
||||||
// We shouldn't store it if it's a pairing message
|
// 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);
|
becomeFriendsWithContact(content.getSender(), true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleSessionRequestIfNeeded(@NonNull SignalServiceEnvelope envelope, @NonNull SignalServiceContent content) {
|
private void handleSessionRequestIfNeeded(@NonNull SignalServiceContent content) {
|
||||||
if (envelope.isFriendRequest() && isSessionRequest(content)) {
|
if (content.isFriendRequest() && isSessionRequest(content)) {
|
||||||
// TODO: Check if member is in one of our private groups
|
// TODO: Check if member is in one of our private groups
|
||||||
boolean isInOneOfOurGroups = false;
|
boolean isInOneOfOurGroups = false;
|
||||||
if (isInOneOfOurGroups) {
|
if (isInOneOfOurGroups) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user