File tree 1 file changed +1
-3
lines changed 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -310,18 +310,15 @@ export function formatMessage(
310
310
if ( ! msg ) return null ;
311
311
return {
312
312
...msg ,
313
- attachments : msg . attachments ?? [ ] ,
314
313
created_at : message . created_at ? new Date ( message . created_at ) : new Date ( ) ,
315
314
deleted_at : message . deleted_at ? new Date ( message . deleted_at ) : null ,
316
- mentioned_users : msg . mentioned_users ?? [ ] ,
317
315
pinned_at : message . pinned_at ? new Date ( message . pinned_at ) : null ,
318
316
reaction_groups : maybeGetReactionGroupsFallback (
319
317
message . reaction_groups ,
320
318
message . reaction_counts ,
321
319
message . reaction_scores ,
322
320
) ,
323
321
status : message . status || 'received' ,
324
- text : msg . text ?? '' ,
325
322
updated_at : message . updated_at ? new Date ( message . updated_at ) : new Date ( ) ,
326
323
} ;
327
324
} ;
@@ -383,6 +380,7 @@ export const toUpdatedMessagePayload = (
383
380
384
381
return {
385
382
...messageFields ,
383
+ // todo: check for date
386
384
pinned : ! ! message . pinned_at ,
387
385
mentioned_users :
388
386
message . mentioned_users ?. map ( ( user ) =>
You can’t perform that action at this time.
0 commit comments