Skip to content

Commit 2a47ca5

Browse files
committed
Merge remote-tracking branch 'origin/release-020226'
2 parents 57e8edb + 183c6c3 commit 2a47ca5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+349
-2065
lines changed

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./node_modules/.bin/commitlint --edit "$1"
1+
./node_modules/.bin/commitlint --edit "$1"

app/soapbox/__fixtures__/intlMessages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"bundle_modal_error.retry": "Try again",
6161
"column.blocks": "Blocked users",
6262
"column.community": "Local timeline",
63-
"column.direct": "Direct messages",
63+
"column.direct": "Conversations",
6464
"column.domain_blocks": "Hidden domains",
6565
"column.edit_profile": "Edit profile",
6666
"column.filters": "Muted words",
@@ -538,7 +538,7 @@
538538
"bundle_modal_error.retry": "Try again",
539539
"column.blocks": "Blocked users",
540540
"column.community": "Local timeline",
541-
"column.direct": "Direct messages",
541+
"column.direct": "Conversations",
542542
"column.domain_blocks": "Hidden domains",
543543
"column.edit_profile": "Edit profile",
544544
"column.filters": "Muted words",

app/soapbox/actions/chats.ts

Lines changed: 0 additions & 265 deletions
This file was deleted.

app/soapbox/actions/compose.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,26 +212,25 @@ const mentionCompose = (account: Account) =>
212212
dispatch(openModal('COMPOSE'));
213213
};
214214

215-
const directCompose = (account: Account) =>
215+
const directCompose = (history: History, account: Account) =>
216216
(dispatch: AppDispatch) => {
217+
dispatch(resetCompose());
217218
dispatch({
218219
type: COMPOSE_DIRECT,
219220
account: account,
220221
});
221-
222-
dispatch(openModal('COMPOSE'));
222+
history.push('/statuses/compose');
223223
};
224224

225-
const directComposeById = (accountId: string) =>
225+
const directComposeById = (history: History, accountId: string) =>
226226
(dispatch: AppDispatch, getState: () => RootState) => {
227227
const account = getState().accounts.get(accountId);
228-
228+
dispatch(resetCompose());
229229
dispatch({
230230
type: COMPOSE_DIRECT,
231231
account: account,
232232
});
233-
234-
dispatch(openModal('COMPOSE'));
233+
history.push('/statuses/compose');
235234
};
236235

237236
const handleComposeSubmit = (dispatch: AppDispatch, getState: () => RootState, data: APIEntity, status: string, edit?: boolean) => {

app/soapbox/actions/timelines.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ const expandRemoteTimeline = (instance: string, { maxId, onlyMedia, excludeRepli
204204
const expandCommunityTimeline = ({ maxId, onlyMedia, excludeReplies }: Record<string, any> = {}, done = noOp) =>
205205
expandTimeline(`community${onlyMedia ? ':media' : ''}${excludeReplies ? ':exclude_replies' : ''}`, '/api/v1/timelines/public', { local: true, max_id: maxId, only_media: !!onlyMedia, exclude_replies: excludeReplies }, done);
206206

207-
const expandDirectTimeline = ({ maxId }: Record<string, any> = {}, done = noOp) =>
208-
expandTimeline('direct', '/api/v1/timelines/direct', { max_id: maxId }, done);
209-
210207
const expandAccountTimeline = (accountId: string, { maxId, withReplies }: Record<string, any> = {}) =>
211208
expandTimeline(`account:${accountId}${withReplies ? ':with_replies' : ''}`, `/api/v1/accounts/${accountId}/statuses`, { exclude_replies: !withReplies, max_id: maxId, with_muted: true });
212209

@@ -307,7 +304,6 @@ export {
307304
expandPublicTimeline,
308305
expandRemoteTimeline,
309306
expandCommunityTimeline,
310-
expandDirectTimeline,
311307
expandAccountTimeline,
312308
expandAccountFeaturedTimeline,
313309
expandAccountMediaTimeline,

app/soapbox/components/helmet.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ FaviconService.initFaviconService();
99

1010
const getNotifTotals = (state: RootState): number => {
1111
const notifications = state.notifications.unread || 0;
12-
const chats = state.chats.items.reduce((acc: any, curr: any) => acc + Math.min(curr.get('unread', 0), 1), 0);
1312
const reports = state.admin.openReports.count();
1413
const approvals = state.admin.awaitingApproval.count();
15-
return notifications + chats + reports + approvals;
14+
return notifications + reports + approvals;
1615
};
1716

1817
const Helmet: React.FC = ({ children }) => {

0 commit comments

Comments
 (0)