#102の変更で不要になった引数を削除 (#103)

This commit is contained in:
かなた 2023-02-25 19:36:00 +09:00 committed by GitHub
parent fb271619cc
commit 31abe7146e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,7 +145,7 @@ export default class 藍 {
if (data.text && data.text.startsWith('@' + this.account.username)) {
// Misskeyのバグで投稿が非公開扱いになる
if (data.text == null) data = await this.api('notes/show', { noteId: data.id });
this.onReceiveMessage(new Message(this, data, false));
this.onReceiveMessage(new Message(this, data));
}
});
@ -155,7 +155,7 @@ export default class 藍 {
if (data.text && data.text.startsWith('@' + this.account.username)) return;
// Misskeyのバグで投稿が非公開扱いになる
if (data.text == null) data = await this.api('notes/show', { noteId: data.id });
this.onReceiveMessage(new Message(this, data, false));
this.onReceiveMessage(new Message(this, data));
});
// Renoteされたとき
@ -173,7 +173,7 @@ export default class 藍 {
// メッセージ
mainStream.on('messagingMessage', data => {
if (data.userId == this.account.id) return; // 自分は弾く
this.onReceiveMessage(new Message(this, data, true));
this.onReceiveMessage(new Message(this, data));
});
// 通知