//META{"name":"FriendNotifications","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/FriendNotifications","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/FriendNotifications/FriendNotifications.plugin.js"}*//
class FriendNotifications {
getName () {return "FriendNotifications";}
getVersion () {return "1.2.6";}
getAuthor () {return "DevilBro";}
getDescription () {return "Notifies you when a Friend or a User your choose to observe changing his online status, can be configured individually in the settings.";}
initConstructor () {
this.changelog = {
"improved":[["Notification Message","You can now customize the message depending on the status"]],
"fixed":[["Mute Sound Bug","Fixed the bug where desktop notifications could not be muted"],["Settings Bug","Fixed the bug where disabling/changing settings for users would not work, unless the plugin was restarted"],["Log Bug","Fixed the bug where the time log would display weirdly"]]
};
this.patchModules = {
"FriendsOnline":"componentDidMount",
"StandardSidebarView":"componentWillUnmount"
};
this.userStatusStore = {};
this.checkInterval = null;
this.timeLog = [];
this.timeLogModalMarkup =
`
Friends LogIn/-Out Timelog