Skip to content

Commit

Permalink
issue RocketChat#5751. Fixed pinned messages showing editing history
Browse files Browse the repository at this point in the history
  • Loading branch information
gursewaktut committed Jun 28, 2024
1 parent 3b0e776 commit 14bc3f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/services/restApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export const getFiles = (roomId: string, type: SubscriptionType, offset: number)
export const getMessages = (
roomId: string,
type: SubscriptionType,
query: { 'mentions._id': { $in: string[] } } | { 'starred._id': { $in: string[] } } | { pinned: boolean },
query: { 'mentions._id': { $in: string[] } } | { 'starred._id': { $in: string[] } } | { pinned: boolean } | { _hidden: {$ne: boolean}},
offset: number
) => {
const t = type as SubscriptionType.DIRECT | SubscriptionType.CHANNEL | SubscriptionType.GROUP;
Expand Down
2 changes: 1 addition & 1 deletion app/views/MessagesView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class MessagesView extends React.Component<IMessagesViewProps, IMessagesViewStat
name: I18n.t('Pinned'),
fetchFunc: () => {
const { messages } = this.state;
return Services.getMessages(this.rid, this.t, { pinned: true }, messages.length);
return Services.getMessages(this.rid, this.t, { pinned: true, _hidden: {$ne: true}}, messages.length);
},
noDataMsg: I18n.t('No_pinned_messages'),
testID: 'pinned-messages-view',
Expand Down

0 comments on commit 14bc3f0

Please sign in to comment.