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

This commit is contained in:
syuilo 2023-03-07 17:12:46 +09:00
parent 1ef6bec133
commit 0554dd8375
3 changed files with 14 additions and 2 deletions

View file

@ -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}`;
}
});
}