Skip to content

Commit

Permalink
Remove usage of isForTabBar outside model
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaemepereira committed Jan 3, 2025
1 parent 5a64cc3 commit e41a3f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DuckDuckGo/HomePage/View/HomePageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ extension HomePage.Views {
@ViewBuilder
func remoteMessage() -> some View {
if let remoteMessage = activeRemoteMessageModel.newTabPageRemoteMessage,
!remoteMessage.isForTabBar,
let modelType = remoteMessage.content,
modelType.isSupported {
ZStack {
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/RemoteMessaging/ActiveRemoteMessageModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ extension RemoteMessageModelType {
}
}

extension RemoteMessageModel {
private extension RemoteMessageModel {

var isForTabBar: Bool {
return id == TabBarRemoteMessage.tabBarPermanentSurveyRemoteMessageId
Expand Down

0 comments on commit e41a3f6

Please sign in to comment.