Skip to content
Snippets Groups Projects
Commit fd42ae8d authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky
Browse files

ipaaca-java: Messages emit MESSAGE events now

parent 3e0238c3
No related branches found
No related tags found
No related merge requests found
...@@ -270,9 +270,7 @@ public class InputBuffer extends Buffer ...@@ -270,9 +270,7 @@ public class InputBuffer extends Buffer
{ {
RemoteMessageIU rm = (RemoteMessageIU) event.getData(); RemoteMessageIU rm = (RemoteMessageIU) event.getData();
messageStore.put(rm.getUid(), rm); messageStore.put(rm.getUid(), rm);
// FIXME: this is NOT according to the other language versions! callIuEventHandlers(rm.getUid(),false, IUEventType.MESSAGE, rm.getCategory());
// Messages must emit IUEventType.MESSAGE - not ADDED
callIuEventHandlers(rm.getUid(),false, IUEventType.ADDED, rm.getCategory());
messageStore.remove(rm.getUid()); messageStore.remove(rm.getUid());
} }
else if (event.getData() instanceof RemotePushIU) else if (event.getData() instanceof RemotePushIU)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment