Skip to content

Commit

Permalink
Merge pull request #945 from meganz/feature/chat-reacts-bindings
Browse files Browse the repository at this point in the history
Android bindings for chat reactions
  • Loading branch information
javiergm1983 authored Oct 6, 2020
2 parents 5d35f0d + 9fa8abd commit d1d8cc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bindings/java/nz/mega/sdk/DelegateMegaChatRoomListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,14 @@ public void run() {
});
}
}

@Override
public void onReactionUpdate(MegaChatApi api, long msgid, String reaction, int count){
if (listener != null) {
megaChatApi.runCallback((Runnable) () -> {
if (listener != null)
listener.onReactionUpdate(megaChatApi, msgid, reaction, count);
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ public interface MegaChatRoomListenerInterface {
public void onMessageReceived(MegaChatApiJava api, MegaChatMessage msg);
public void onMessageUpdate(MegaChatApiJava api, MegaChatMessage msg);
public void onHistoryReloaded(MegaChatApiJava api, MegaChatRoom chat);
public void onReactionUpdate(MegaChatApiJava api, long msgid, String reaction, int count);
}

0 comments on commit d1d8cc9

Please sign in to comment.