We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf65596 commit dab5ee7Copy full SHA for dab5ee7
lib/imAdapters.js
@@ -1,4 +1,3 @@
1
-
2
/**
3
* sendbird-utils v0.0.3
4
* SendBird utils
@@ -112,7 +111,7 @@ function messageAdapter(userMessage) {
112
111
113
function messagesListAdapter(userMessages) {
114
return userMessages.reduce(function (a, v) {
115
- return a.add(messageAdapter(v));
+ return v ? a.add(messageAdapter(v)) : a;
116
}, new immutable.Set());
117
}
118
package.json
@@ -1,6 +1,6 @@
{
"name": "sendbird-utils",
- "version": "0.0.4",
+ "version": "0.0.5",
"description": "SendBird utils",
5
"main": "lib/index.js",
6
"repository": "https://github.com/brocoders/sendbird-utils.git",
0 commit comments