Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
41a50551
Unverified
Commit
41a50551
authored
1 year ago
by
Renaud Chaput
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused `missed_update` state (#25832)
parent
a7ca33ad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/javascript/mastodon/reducers/index.ts
+0
-2
0 additions, 2 deletions
app/javascript/mastodon/reducers/index.ts
app/javascript/mastodon/reducers/missed_updates.ts
+0
-33
0 additions, 33 deletions
app/javascript/mastodon/reducers/missed_updates.ts
with
0 additions
and
35 deletions
app/javascript/mastodon/reducers/index.ts
+
0
−
2
View file @
41a50551
...
...
@@ -26,7 +26,6 @@ import lists from './lists';
import
markers
from
'
./markers
'
;
import
media_attachments
from
'
./media_attachments
'
;
import
meta
from
'
./meta
'
;
import
{
missedUpdatesReducer
}
from
'
./missed_updates
'
;
import
{
modalReducer
}
from
'
./modal
'
;
import
mutes
from
'
./mutes
'
;
import
notifications
from
'
./notifications
'
;
...
...
@@ -82,7 +81,6 @@ const reducers = {
suggestions
,
polls
,
trends
,
missed_updates
:
missedUpdatesReducer
,
markers
,
picture_in_picture
,
history
,
...
...
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/reducers/missed_updates.ts
deleted
100644 → 0
+
0
−
33
View file @
a7ca33ad
import
{
Record
}
from
'
immutable
'
;
import
type
{
Action
}
from
'
redux
'
;
import
{
focusApp
,
unfocusApp
}
from
'
../actions/app
'
;
import
{
NOTIFICATIONS_UPDATE
}
from
'
../actions/notifications
'
;
interface
MissedUpdatesState
{
focused
:
boolean
;
unread
:
number
;
}
const
initialState
=
Record
<
MissedUpdatesState
>
({
focused
:
true
,
unread
:
0
,
})();
export
function
missedUpdatesReducer
(
state
=
initialState
,
action
:
Action
<
string
>
)
{
switch
(
action
.
type
)
{
case
focusApp
.
type
:
return
state
.
set
(
'
focused
'
,
true
).
set
(
'
unread
'
,
0
);
case
unfocusApp
.
type
:
return
state
.
set
(
'
focused
'
,
false
);
case
NOTIFICATIONS_UPDATE
:
return
state
.
get
(
'
focused
'
)
?
state
:
state
.
update
(
'
unread
'
,
(
x
)
=>
x
+
1
);
default
:
return
state
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment