Skip to content

Commit

Permalink
Release - 4.14.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sendbird-sdk-deployment committed Oct 24, 2024
1 parent fd57af0 commit 1d46cdc
Show file tree
Hide file tree
Showing 35 changed files with 37 additions and 33 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v4.14.6 (Oct 24, 2024)
### **Improvements**
- Fixed a bug where `expiring_session=true` regardless of whether `SessionHandler` is registered when `authToken` exists
- Fixed typo in `markPushNotificationAsClicked` logs
## v4.14.5 (Oct 14, 2024)
### **Improvements**
- Added `message` property in `FileMessageCreateParams`
Expand Down
2 changes: 1 addition & 1 deletion cjs/feedChannel.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cjs/groupChannel.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cjs/index.cjs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
var o=require("./__bundle-0486c467.cjs");exports.BaseChannelHandlerParams=class{constructor(){this.onUserMuted=o.noop,this.onUserUnmuted=o.noop,this.onUserBanned=o.noop,this.onUserUnbanned=o.noop,this.onChannelChanged=o.noop,this.onChannelDeleted=o.noop,this.onChannelFrozen=o.noop,this.onChannelUnfrozen=o.noop,this.onOperatorUpdated=o.noop,this.onChannelMemberCountChanged=o.noop,this.onMetaDataCreated=o.noop,this.onMetaDataUpdated=o.noop,this.onMetaDataDeleted=o.noop,this.onMetaCounterCreated=o.noop,this.onMetaCounterUpdated=o.noop,this.onMetaCounterDeleted=o.noop,this.onMessageReceived=o.noop,this.onMessageUpdated=o.noop,this.onMessageDeleted=o.noop,this.onMentionReceived=o.noop,this.onReactionUpdated=o.noop,this.onThreadInfoUpdated=o.noop}};
var o=require("./__bundle-2d1d7d4f.cjs");exports.BaseChannelHandlerParams=class{constructor(){this.onUserMuted=o.noop,this.onUserUnmuted=o.noop,this.onUserBanned=o.noop,this.onUserUnbanned=o.noop,this.onChannelChanged=o.noop,this.onChannelDeleted=o.noop,this.onChannelFrozen=o.noop,this.onChannelUnfrozen=o.noop,this.onOperatorUpdated=o.noop,this.onChannelMemberCountChanged=o.noop,this.onMetaDataCreated=o.noop,this.onMetaDataUpdated=o.noop,this.onMetaDataDeleted=o.noop,this.onMetaCounterCreated=o.noop,this.onMetaCounterUpdated=o.noop,this.onMetaCounterDeleted=o.noop,this.onMessageReceived=o.noop,this.onMessageUpdated=o.noop,this.onMessageDeleted=o.noop,this.onMentionReceived=o.noop,this.onReactionUpdated=o.noop,this.onThreadInfoUpdated=o.noop}};

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
var s=require("./__bundle-0486c467.cjs");class e extends s.User{constructor(s,e){var t;super(s,e),this.isMuted=!1,this.isMuted=null!==(t=e.is_muted)&&void 0!==t&&t}}exports.Participant=e;
var s=require("./__bundle-2d1d7d4f.cjs");class e extends s.User{constructor(s,e){var t;super(s,e),this.isMuted=!1,this.isMuted=null!==(t=e.is_muted)&&void 0!==t&&t}}exports.Participant=e;
Original file line number Diff line number Diff line change
@@ -1 +1 @@
var e=require("./__bundle-0486c467.cjs");exports.xmlHttpRequest=(r,s)=>new Promise(((t,o)=>{if("undefined"!=typeof XMLHttpRequest){const{dispatcher:n,logger:d}=e.Vault.of(r),{requestId:a,method:i,url:u,headers:p={},data:c="",uploadProgressHandler:l}=s;let m=!1;const E=new XMLHttpRequest;E.open(i,u),Object.keys(p).forEach((e=>{E.setRequestHeader(e,p[e])})),l&&E.upload.addEventListener("progress",(e=>{e.lengthComputable?l(a,e.loaded,e.total):d.debug("Progress computing failed: `Content-Length` header is not given.")})),E.onabort=()=>{o(e.SendbirdError.requestCanceled)},E.onerror=r=>{o(e.SendbirdError.networkError)},E.onreadystatechange=()=>{if(E.readyState===XMLHttpRequest.DONE&&!m)if(0===E.status||E.status>=200&&E.status<400)try{const s=JSON.parse(E.responseText);t(new e.APIResponseCommand(r,s))}catch(r){o(e.SendbirdError.networkError)}else try{const r=JSON.parse(E.responseText);if(r){const s=new e.SendbirdError(r);if(s.isSessionExpiredError){if(n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message})),!(E instanceof e.SessionRefreshAPICommand)){const r=new e.Deferred;return n.dispatch(new e.RequestResendCommand({request:E,deferred:r,error:s})),r.promise}}else s.isSessionInvalidatedError&&n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message}));o(s)}else o(e.SendbirdError.requestFailed)}catch(r){o(e.SendbirdError.requestFailed)}},n.on((r=>{r instanceof e.CancelXMLHttpRequestCommand&&(r.requestId&&r.requestId!==a||(m=!0,E.abort()))})),E.send(c)}else o(e.SendbirdError.xmlHttpRequestNotSupported)}));
var e=require("./__bundle-2d1d7d4f.cjs");exports.xmlHttpRequest=(r,s)=>new Promise(((t,o)=>{if("undefined"!=typeof XMLHttpRequest){const{dispatcher:n,logger:d}=e.Vault.of(r),{requestId:a,method:i,url:u,headers:p={},data:c="",uploadProgressHandler:l}=s;let m=!1;const f=new XMLHttpRequest;f.open(i,u),Object.keys(p).forEach((e=>{f.setRequestHeader(e,p[e])})),l&&f.upload.addEventListener("progress",(e=>{e.lengthComputable?l(a,e.loaded,e.total):d.debug("Progress computing failed: `Content-Length` header is not given.")})),f.onabort=()=>{o(e.SendbirdError.requestCanceled)},f.onerror=r=>{o(e.SendbirdError.networkError)},f.onreadystatechange=()=>{if(f.readyState===XMLHttpRequest.DONE&&!m)if(0===f.status||f.status>=200&&f.status<400)try{const s=JSON.parse(f.responseText);t(new e.APIResponseCommand(r,s))}catch(r){o(e.SendbirdError.networkError)}else try{const r=JSON.parse(f.responseText);if(r){const s=new e.SendbirdError(r);if(s.isSessionExpiredError){if(n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message})),!(f instanceof e.SessionRefreshAPICommand)){const r=new e.Deferred;return n.dispatch(new e.RequestResendCommand({request:f,deferred:r,error:s})),r.promise}}else s.isSessionInvalidatedError&&n.dispatch(new e.SessionExpiredCommand({reason:s.code,message:s.message}));o(s)}else o(e.SendbirdError.requestFailed)}catch(r){o(e.SendbirdError.requestFailed)}},n.on((r=>{r instanceof e.CancelXMLHttpRequestCommand&&(r.requestId&&r.requestId!==a||(m=!0,f.abort()))})),f.send(c)}else o(e.SendbirdError.xmlHttpRequestNotSupported)}));
Original file line number Diff line number Diff line change
@@ -1 +1 @@
var e,t=require("./__bundle-0486c467.cjs"),s=require("./__bundle-4bcf4070.cjs"),n=require("./__bundle-dae7bdf2.cjs");exports.ChannelEventCategory=void 0,(e=exports.ChannelEventCategory||(exports.ChannelEventCategory={}))[e.NONE=0]="NONE",e[e.CHANNEL_ENTER=10102]="CHANNEL_ENTER",e[e.CHANNEL_EXIT=10103]="CHANNEL_EXIT",e[e.USER_CHANNEL_MUTE=10201]="USER_CHANNEL_MUTE",e[e.USER_CHANNEL_UNMUTE=10200]="USER_CHANNEL_UNMUTE",e[e.USER_CHANNEL_BAN=10601]="USER_CHANNEL_BAN",e[e.USER_CHANNEL_UNBAN=10600]="USER_CHANNEL_UNBAN",e[e.CHANNEL_FREEZE=10701]="CHANNEL_FREEZE",e[e.CHANNEL_UNFREEZE=10700]="CHANNEL_UNFREEZE",e[e.TYPING_START=10900]="TYPING_START",e[e.TYPING_END=10901]="TYPING_END",e[e.CHANNEL_JOIN=1e4]="CHANNEL_JOIN",e[e.CHANNEL_LEAVE=10001]="CHANNEL_LEAVE",e[e.CHANNEL_OPERATOR_UPDATE=10002]="CHANNEL_OPERATOR_UPDATE",e[e.CHANNEL_INVITE=10020]="CHANNEL_INVITE",e[e.CHANNEL_ACCEPT_INVITE=10021]="CHANNEL_ACCEPT_INVITE",e[e.CHANNEL_DECLINE_INVITE=10022]="CHANNEL_DECLINE_INVITE",e[e.CHANNEL_PROP_CHANGED=11e3]="CHANNEL_PROP_CHANGED",e[e.CHANNEL_DELETED=12e3]="CHANNEL_DELETED",e[e.CHANNEL_META_DATA_CHANGED=11100]="CHANNEL_META_DATA_CHANGED",e[e.CHANNEL_META_COUNTERS_CHANGED=11200]="CHANNEL_META_COUNTERS_CHANGED",e[e.CHANNEL_HIDE=13e3]="CHANNEL_HIDE",e[e.CHANNEL_UNHIDE=13001]="CHANNEL_UNHIDE",e[e.PINNED_MESSAGE_CHANGED=11300]="PINNED_MESSAGE_CHANGED";class a{constructor(e){var t;this.channelUrl=e.channel_url,this.channelType=e.channel_type,this.category=e.cat,this.data=null!==(t=e.data)&&void 0!==t?t:{},this.ts=e.ts}get isGroupChannelEvent(){return this.channelType===t.ChannelType.GROUP}get isOpenChannelEvent(){return this.channelType===t.ChannelType.OPEN}}class o extends t.WebSocketEventCommand{constructor(e,t,s){super(e,"SYEV",s),this.event=new a(s)}}class r extends t.WebSocketEventCommand{constructor(e,t,n){var a;super(e,"SYEV",n),this.pinnedMessageIds=[],this.latestPinnedMessage=null,this.ts=0,n.data&&(this.pinnedMessageIds=null!==(a=n.data.pinned_message_ids)&&void 0!==a?a:[],this.latestPinnedMessage=n.data.latest_pinned_message?s.parseMessagePayload(e,Object.assign({},n.data.latest_pinned_message)):null),this.ts=n.ts}}class i extends t.InstancedObject{get _messageBroadcast(){return s.MessageBroadcast.of(this._iid)}constructor(e,t){super(e),this._logger=t.logger,this._sdkState=t.sdkState,this._sessionManager=t.sessionManager,this._requestQueue=t.requestQueue,this._dispatcher=t.dispatcher,this._cacheContext=t.cacheContext,this._channelType=t.channelType}subscribeMessageEvent(e,t){this._messageBroadcast.subscribe(e,t)}unsubscribeMessageEvent(e){this._messageBroadcast.unsubscribe(e)}getMessageFromCache(e){return t.__awaiter(this,void 0,void 0,(function*(){return null}))}getExactlyMatchingMessagesForTokenFromCache(e,s,n){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}getMessagesFromCache(e,s,n,a,o,r){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}getPollMessagesFromCache(e,s,n,a){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}getCachedMessageCountBetween(e,s,n,a){return t.__awaiter(this,void 0,void 0,(function*(){return 0}))}getUnsentMessagesFromCache(e,s){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}removeFailedMessageFromCache(e){return t.__awaiter(this,void 0,void 0,(function*(){}))}}class E extends t.WebSocketEventCommand{constructor(e,n,a){var o,r,i,E;super(e,"ADMM",a),this.message=new s.AdminMessage(e,a);const{sdkState:d}=t.Vault.of(e);this.isMentioned=t.checkIfMentioned(this.message.mentionType,null!==(i=null!==(o=this.message.mentionedUserIds)&&void 0!==o?o:null===(r=this.message.mentionedUsers)||void 0===r?void 0:r.map((e=>e.userId)))&&void 0!==i?i:[],d.userId),this.forceUpdateLastMessage=null!==(E=a.force_update_last_message)&&void 0!==E&&E}}class d extends t.WebSocketEventCommand{constructor(e,n,a){var o,r,i,E,d;super(e,"AEDI",a),this.message=new s.AdminMessage(e,a);const{sdkState:_}=t.Vault.of(e);this.mentionCountChange=t.calculateMentionCountChange({mentionType:null===(o=a.old_values)||void 0===o?void 0:o.mention_type,mentionedUserIds:null!==(i=null===(r=a.old_values)||void 0===r?void 0:r.mentioned_user_ids)&&void 0!==i?i:[]},t.undefineNullProps({mentionType:this.message.mentionType,mentionedUserIds:null!==(E=this.message.mentionedUserIds)&&void 0!==E?E:null===(d=this.message.mentionedUsers)||void 0===d?void 0:d.map((e=>e.userId))}),_.userId)}}class _ extends t.WebSocketEventCommand{constructor(e,t,n){super(e,"MRCT",n),this.channelUrl=n.channel_url,this.channelType=n.channel_type,this.event=new s.ReactionEvent(n)}}class N extends t.WebSocketEventCommand{constructor(e,t,n){super(e,"MTHD",n),this.event=new s.ThreadInfoUpdateEvent(e,n)}}class c extends t.WebSocketEventCommand{constructor(e,t,s){super(e,"MCNT",s),this.groupChannelMemberCounts=s.group_channels.map((e=>({channelUrl:e.channel_url,memberCount:e.member_count,joinedMemberCount:e.joined_member_count,updatedAt:e.ts}))),this.openChannelMemberCounts=s.open_channels.map((e=>({channelUrl:e.channel_url,participantCount:e.participant_count,updatedAt:e.ts})))}}class l extends t.WebSocketEventCommand{constructor(e,s,a){super(e,"PEDI",a),this.event=new n.PollUpdateEvent(e,a),this.status=t.parsePollStatusPayload(a.poll.status)||a.poll.status,this.channelUrl=a.channel_url,this.channelType=a.channel_type}}exports.AdminMessageEventCommand=E,exports.BaseChannelManager=i,exports.ChannelEventCommand=o,exports.MemberCountUpdateEventCommand=c,exports.OperatorUpdateEventCommand=class extends o{constructor(e,s,n){super(e,s,n);const{operators:a=[]}=n.data;this.operators=a.map((e=>new t.User(this._iid,e)))}},exports.PollUpdateEventCommand=l,exports.ReactionEventCommand=_,exports.ThreadInfoUpdateEventCommand=N,exports.UpdateAdminMessageEventCommand=d,exports.UpdatePinnedMessageEventCommand=r;
var e,t=require("./__bundle-2d1d7d4f.cjs"),s=require("./__bundle-ccb8334d.cjs"),n=require("./__bundle-dae7bdf2.cjs");exports.ChannelEventCategory=void 0,(e=exports.ChannelEventCategory||(exports.ChannelEventCategory={}))[e.NONE=0]="NONE",e[e.CHANNEL_ENTER=10102]="CHANNEL_ENTER",e[e.CHANNEL_EXIT=10103]="CHANNEL_EXIT",e[e.USER_CHANNEL_MUTE=10201]="USER_CHANNEL_MUTE",e[e.USER_CHANNEL_UNMUTE=10200]="USER_CHANNEL_UNMUTE",e[e.USER_CHANNEL_BAN=10601]="USER_CHANNEL_BAN",e[e.USER_CHANNEL_UNBAN=10600]="USER_CHANNEL_UNBAN",e[e.CHANNEL_FREEZE=10701]="CHANNEL_FREEZE",e[e.CHANNEL_UNFREEZE=10700]="CHANNEL_UNFREEZE",e[e.TYPING_START=10900]="TYPING_START",e[e.TYPING_END=10901]="TYPING_END",e[e.CHANNEL_JOIN=1e4]="CHANNEL_JOIN",e[e.CHANNEL_LEAVE=10001]="CHANNEL_LEAVE",e[e.CHANNEL_OPERATOR_UPDATE=10002]="CHANNEL_OPERATOR_UPDATE",e[e.CHANNEL_INVITE=10020]="CHANNEL_INVITE",e[e.CHANNEL_ACCEPT_INVITE=10021]="CHANNEL_ACCEPT_INVITE",e[e.CHANNEL_DECLINE_INVITE=10022]="CHANNEL_DECLINE_INVITE",e[e.CHANNEL_PROP_CHANGED=11e3]="CHANNEL_PROP_CHANGED",e[e.CHANNEL_DELETED=12e3]="CHANNEL_DELETED",e[e.CHANNEL_META_DATA_CHANGED=11100]="CHANNEL_META_DATA_CHANGED",e[e.CHANNEL_META_COUNTERS_CHANGED=11200]="CHANNEL_META_COUNTERS_CHANGED",e[e.CHANNEL_HIDE=13e3]="CHANNEL_HIDE",e[e.CHANNEL_UNHIDE=13001]="CHANNEL_UNHIDE",e[e.PINNED_MESSAGE_CHANGED=11300]="PINNED_MESSAGE_CHANGED";class a{constructor(e){var t;this.channelUrl=e.channel_url,this.channelType=e.channel_type,this.category=e.cat,this.data=null!==(t=e.data)&&void 0!==t?t:{},this.ts=e.ts}get isGroupChannelEvent(){return this.channelType===t.ChannelType.GROUP}get isOpenChannelEvent(){return this.channelType===t.ChannelType.OPEN}}class o extends t.WebSocketEventCommand{constructor(e,t,s){super(e,"SYEV",s),this.event=new a(s)}}class r extends t.WebSocketEventCommand{constructor(e,t,n){var a;super(e,"SYEV",n),this.pinnedMessageIds=[],this.latestPinnedMessage=null,this.ts=0,n.data&&(this.pinnedMessageIds=null!==(a=n.data.pinned_message_ids)&&void 0!==a?a:[],this.latestPinnedMessage=n.data.latest_pinned_message?s.parseMessagePayload(e,Object.assign({},n.data.latest_pinned_message)):null),this.ts=n.ts}}class i extends t.InstancedObject{get _messageBroadcast(){return s.MessageBroadcast.of(this._iid)}constructor(e,t){super(e),this._logger=t.logger,this._sdkState=t.sdkState,this._sessionManager=t.sessionManager,this._requestQueue=t.requestQueue,this._dispatcher=t.dispatcher,this._cacheContext=t.cacheContext,this._channelType=t.channelType}subscribeMessageEvent(e,t){this._messageBroadcast.subscribe(e,t)}unsubscribeMessageEvent(e){this._messageBroadcast.unsubscribe(e)}getMessageFromCache(e){return t.__awaiter(this,void 0,void 0,(function*(){return null}))}getExactlyMatchingMessagesForTokenFromCache(e,s,n){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}getMessagesFromCache(e,s,n,a,o,r){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}getPollMessagesFromCache(e,s,n,a){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}getCachedMessageCountBetween(e,s,n,a){return t.__awaiter(this,void 0,void 0,(function*(){return 0}))}getUnsentMessagesFromCache(e,s){return t.__awaiter(this,void 0,void 0,(function*(){return[]}))}removeFailedMessageFromCache(e){return t.__awaiter(this,void 0,void 0,(function*(){}))}}class E extends t.WebSocketEventCommand{constructor(e,n,a){var o,r,i,E;super(e,"ADMM",a),this.message=new s.AdminMessage(e,a);const{sdkState:d}=t.Vault.of(e);this.isMentioned=t.checkIfMentioned(this.message.mentionType,null!==(i=null!==(o=this.message.mentionedUserIds)&&void 0!==o?o:null===(r=this.message.mentionedUsers)||void 0===r?void 0:r.map((e=>e.userId)))&&void 0!==i?i:[],d.userId),this.forceUpdateLastMessage=null!==(E=a.force_update_last_message)&&void 0!==E&&E}}class d extends t.WebSocketEventCommand{constructor(e,n,a){var o,r,i,E,d;super(e,"AEDI",a),this.message=new s.AdminMessage(e,a);const{sdkState:_}=t.Vault.of(e);this.mentionCountChange=t.calculateMentionCountChange({mentionType:null===(o=a.old_values)||void 0===o?void 0:o.mention_type,mentionedUserIds:null!==(i=null===(r=a.old_values)||void 0===r?void 0:r.mentioned_user_ids)&&void 0!==i?i:[]},t.undefineNullProps({mentionType:this.message.mentionType,mentionedUserIds:null!==(E=this.message.mentionedUserIds)&&void 0!==E?E:null===(d=this.message.mentionedUsers)||void 0===d?void 0:d.map((e=>e.userId))}),_.userId)}}class _ extends t.WebSocketEventCommand{constructor(e,t,n){super(e,"MRCT",n),this.channelUrl=n.channel_url,this.channelType=n.channel_type,this.event=new s.ReactionEvent(n)}}class N extends t.WebSocketEventCommand{constructor(e,t,n){super(e,"MTHD",n),this.event=new s.ThreadInfoUpdateEvent(e,n)}}class c extends t.WebSocketEventCommand{constructor(e,t,s){super(e,"MCNT",s),this.groupChannelMemberCounts=s.group_channels.map((e=>({channelUrl:e.channel_url,memberCount:e.member_count,joinedMemberCount:e.joined_member_count,updatedAt:e.ts}))),this.openChannelMemberCounts=s.open_channels.map((e=>({channelUrl:e.channel_url,participantCount:e.participant_count,updatedAt:e.ts})))}}class l extends t.WebSocketEventCommand{constructor(e,s,a){super(e,"PEDI",a),this.event=new n.PollUpdateEvent(e,a),this.status=t.parsePollStatusPayload(a.poll.status)||a.poll.status,this.channelUrl=a.channel_url,this.channelType=a.channel_type}}exports.AdminMessageEventCommand=E,exports.BaseChannelManager=i,exports.ChannelEventCommand=o,exports.MemberCountUpdateEventCommand=c,exports.OperatorUpdateEventCommand=class extends o{constructor(e,s,n){super(e,s,n);const{operators:a=[]}=n.data;this.operators=a.map((e=>new t.User(this._iid,e)))}},exports.PollUpdateEventCommand=l,exports.ReactionEventCommand=_,exports.ThreadInfoUpdateEventCommand=N,exports.UpdateAdminMessageEventCommand=d,exports.UpdatePinnedMessageEventCommand=r;
1 change: 1 addition & 0 deletions cjs/lib/__bundle-785dde28.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var e=require("./__bundle-2d1d7d4f.cjs");class d extends e.BaseCommand{}exports.NotificationCollectionRefreshCommand=d,exports.getFeedChannelIndexBy=e=>["-lastMessageUpdatedAt","-createdAt","syncIndex"];

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cjs/lib/__bundle-d1419fd1.cjs

This file was deleted.

Loading

0 comments on commit 1d46cdc

Please sign in to comment.