Skip to content

Commit 3d7c169

Browse files
BigHeadCreationsgnprice
authored andcommitted
msglist [nfc]: Drop theme from BackgroundData
Now that MessageList gets the theme from the ThemeContext, the `theme` property can be removed from BackgroundData.
1 parent f6ff91a commit 3d7c169

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/webview/backgroundData.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type {
1212
PerAccountState,
1313
Subscription,
1414
Stream,
15-
ThemeName,
1615
UserId,
1716
User,
1817
UserOrBot,
@@ -63,7 +62,6 @@ export type BackgroundData = $ReadOnly<{|
6362
streams: Map<number, Stream>,
6463
subscriptions: Map<number, Subscription>,
6564
unread: UnreadState,
66-
theme: ThemeName,
6765
twentyFourHourTime: boolean,
6866
userSettingStreamNotification: boolean,
6967
displayEmojiReactionUsers: boolean,
@@ -96,7 +94,6 @@ export const getBackgroundData = (
9694
streams: getStreamsById(state),
9795
subscriptions: getSubscriptionsById(state),
9896
unread: getUnread(state),
99-
theme: globalSettings.theme,
10097
twentyFourHourTime: getRealm(state).twentyFourHourTime,
10198
userSettingStreamNotification: getSettings(state).streamNotification,
10299
displayEmojiReactionUsers: getSettings(state).displayEmojiReactionUsers,

0 commit comments

Comments
 (0)