Skip to content
Snippets Groups Projects
Commit 0554dd83 authored by syuilo's avatar syuilo
Browse files

enhance(client): DM作成時にメンションも含むように

parent 1ef6bec1
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,19 @@
-
### Bugfixes
x
-
You should also include the user name that made the change.
-->
## 13.x.x (unreleased)
### Improvements
- enhance(client): DM作成時にメンションも含むように
### Bugfixes
-
## 13.9.2 (2023/03/06)
### Improvements
......
......@@ -422,6 +422,10 @@ function pushVisibleUser(user) {
function addVisibleUser() {
os.selectUser().then(user => {
pushVisibleUser(user);
if (!text.includes(`@${user.username}`)) {
text = `@${Acct.toString(user)} ${text}`;
}
});
}
......
......@@ -111,7 +111,7 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router
icon: 'ti ti-mail',
text: i18n.ts.sendMessage,
action: () => {
os.post({ specified: user });
os.post({ specified: user, initialText: `@${user.username} ` });
},
}, null, {
type: 'parent',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment