mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-01 16:29:56 +09:00
enhance: Implement the toggle to (or not to) close push notifications when notifications or messages are read (#9219)
* create file * wip * fix * wip * tabun dekita * ✌️ * implement subscribe push notification button to tutorial * check-exists→show-registration * add column sendReadMessage * fix migration file * sw api * change PushNotificationService * wip * ✌️ * fix tutorial footer flex
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
export class whetherPushNotifyToSendReadMessage1669138716634 {
|
||||
name = 'whetherPushNotifyToSendReadMessage1669138716634'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "sw_subscription" ADD "sendReadMessage" boolean NOT NULL DEFAULT false`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "sw_subscription" DROP COLUMN "sendReadMessage"`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user