mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-13 16:22:22 +00:00
Add null check. // FREEBIE
This commit is contained in:
@@ -57,7 +57,7 @@ public class GroupReceiver {
|
|||||||
handleGroupUpdate(masterSecret, message, group, record);
|
handleGroupUpdate(masterSecret, message, group, record);
|
||||||
} else if (record == null && type == GroupContext.Type.UPDATE_VALUE) {
|
} else if (record == null && type == GroupContext.Type.UPDATE_VALUE) {
|
||||||
handleGroupCreate(masterSecret, message, group);
|
handleGroupCreate(masterSecret, message, group);
|
||||||
} else if (type == GroupContext.Type.QUIT_VALUE) {
|
} else if (record != null && type == GroupContext.Type.QUIT_VALUE) {
|
||||||
handleGroupLeave(masterSecret, message, group, record);
|
handleGroupLeave(masterSecret, message, group, record);
|
||||||
} else if (type == GroupContext.Type.UNKNOWN_VALUE) {
|
} else if (type == GroupContext.Type.UNKNOWN_VALUE) {
|
||||||
Log.w("GroupReceiver", "Received unknown type, ignoring...");
|
Log.w("GroupReceiver", "Received unknown type, ignoring...");
|
||||||
|
|||||||
Reference in New Issue
Block a user