mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 08:20:10 +00:00
enhance(client): DM作成時にメンションも含むように
This commit is contained in:
parent
1ef6bec133
commit
0554dd8375
3 changed files with 14 additions and 2 deletions
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue