MLv2 v1.7.56 fix on canary (#20)

This commit is contained in:
_Lighty_ 2020-10-02 23:00:20 +02:00 committed by GitHub
parent 5ab15b30cd
commit fb3f3c5b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,7 @@
# [MessageLoggerV2](https://1lighty.github.io/BetterDiscordStuff/?plugin=MessageLoggerV2 "MessageLoggerV2") Changelog
### 1.7.56
- Fixed not working on canary
### 1.7.55
- Bruh. Gitlab sux, moved plugin to github.

View File

@ -29,7 +29,7 @@ module.exports = class MessageLoggerV2 {
return 'MessageLoggerV2';
}
getVersion() {
return '1.7.55';
return '1.7.56';
}
getAuthor() {
return 'Lighty';
@ -162,9 +162,9 @@ module.exports = class MessageLoggerV2 {
getChanges() {
return [
{
title: 'bruh',
type: 'improved',
items: ['Bruh. Gitlab sux, moved plugin to github.']
title: 'fixed',
type: 'fixed',
items: ['Fixed not working on canary']
}
];
}
@ -3106,7 +3106,7 @@ module.exports = class MessageLoggerV2 {
this.createModal.confirmationModal.Sizes = ZeresPluginLibrary.WebpackModules.getByProps('ModalSize').ModalSize;
} catch { }
this.ModalStack = ZeresPluginLibrary.WebpackModules.getByProps('openModal', 'hasModalOpen');
this._modalsApiUnsubcribe = this.ModalStack.modalsApi.subscribe(_ => {
this._modalsApiUnsubcribe = (this.ModalStack.modalsApi || this.ModalStack.useModalsStore).subscribe(_ => {
if (this.menu.open && !this.ModalStack.hasModalOpen(this.style.menu)) {
this.menu.filter = '';
this.menu.open = false;