File tree Expand file tree Collapse file tree
libs/store/src/lib/channels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export const channelMetaSlice = createSlice({
133133 }
134134 }
135135 if ( action ?. payload ?. clanId === '0' ) {
136- // dmMetaAdapter.setMany(state.dmEntities, meta);
136+ dmMetaAdapter . setMany ( state . dmEntities , meta ) ;
137137 return ;
138138 }
139139 channelMetaAdapter . setMany ( state , meta ) ;
@@ -228,16 +228,16 @@ export const channelMetaSlice = createSlice({
228228 id : channelId ,
229229 changes : {
230230 last_sent_message : updatedMessage ,
231- lastSentTimestamp : updatedMessage ?. timestamp_seconds || Date . now ( ) / 1000 - 1
231+ lastSentTimestamp : updatedMessage ?. timestamp_seconds || Date . now ( ) / 1000
232232 }
233233 } ) ;
234234 } else {
235235 dmMetaAdapter . addOne ( state . dmEntities , {
236236 id : channelId ,
237- clanId : message . clan_id || '0 ' ,
237+ clanId : message . clan_id || '' ,
238238 isMute : false ,
239239 senderId : message . sender_id ,
240- lastSeenTimestamp : updatedMessage ?. timestamp_seconds || Date . now ( ) / 1000 - 1000 ,
240+ lastSeenTimestamp : updatedMessage ?. timestamp_seconds || Date . now ( ) / 1000 - 1 ,
241241 last_sent_message : updatedMessage ,
242242 lastSentTimestamp : updatedMessage ?. timestamp_seconds || Date . now ( ) / 1000
243243 } ) ;
You can’t perform that action at this time.
0 commit comments