Skip to content

Commit

Permalink
style: Fixed compatitibily with <= 2.3000.1018090133
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Nov 14, 2024
1 parent d87ea3d commit c8015bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/whatsapp/functions/getShouldAppearInList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

import { injectFallbackModule } from '../../webpack';
import { exportModule } from '../exportModule';
import { ChatModel } from '../models';

Expand Down Expand Up @@ -41,3 +42,11 @@ exportModule(
m.getShowChangeNumberNotification &&
m.getShouldShowUnreadDivider
);

injectFallbackModule('getShouldAppearInList', {
getShouldAppearInList: (chat: ChatModel) => chat.shouldAppearInList,
getPreviewMessage: (chat: ChatModel) => chat.previewMessage,
getShowChangeNumberNotification: (chat: ChatModel) =>
chat.showChangeNumberNotification,
getShouldShowUnreadDivider: (chat: ChatModel) => chat.shouldShowUnreadDivider,
});

0 comments on commit c8015bd

Please sign in to comment.