Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sdk/src/main/java/com/vk/api/sdk/callback/CallbackApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ public void confirmation(Integer groupId, String secret) {
confirmation(groupId);
}

public void checkSecret(String secret) {
}

public boolean parse(String json) {
JsonObject jsonObject = gson.fromJson(json, JsonObject.class);
return parse(jsonObject);
Expand All @@ -461,6 +464,8 @@ public boolean parse(JsonObject json) {

CallbackMessage message = gson.fromJson(json, typeOfClass);

checkSecret(message.getSecret());

switch (type) {
case CALLBACK_EVENT_MESSAGE_NEW:
messageNew(message.getGroupId(), message.getSecret(), (Message) message.getObject());
Expand Down