1.1.0 #352
@ -53,6 +53,7 @@ class AchievementOnMessageEvent(OnMessageABC):
|
||||
user = self._users.get_user_by_discord_id_and_server_id(message.author.id, server.id)
|
||||
|
||||
user.message_count += 1
|
||||
self._users.update_user(user)
|
||||
self._db.save_changes()
|
||||
|
||||
await self._achievements.validate_achievements_for_user(user)
|
||||
|
@ -57,5 +57,6 @@ class AchievementOnReactionAddEvent(OnReactionAddABC):
|
||||
|
||||
user.reaction_count += 1
|
||||
self._db.save_changes()
|
||||
self._users.update_user(user)
|
||||
|
||||
await self._achievements.validate_achievements_for_user(user)
|
||||
|
@ -57,5 +57,6 @@ class AchievementOnReactionRemoveEvent(OnReactionRemoveABC):
|
||||
|
||||
user.reaction_count -= 1
|
||||
self._db.save_changes()
|
||||
self._users.update_user(user)
|
||||
|
||||
await self._achievements.validate_achievements_for_user(user)
|
||||
|
@ -69,7 +69,7 @@ export class SidebarService {
|
||||
|
||||
async buildMenu(user: UserDTO | null, hasPermission: boolean, isTechnician: boolean = false) {
|
||||
this.dashboard = {
|
||||
label: this.translateService.instant("sidebar.dashboard"),
|
||||
label: this.isSidebarOpen ? this.translateService.instant("sidebar.dashboard") : "",
|
||||
icon: "pi pi-th-large",
|
||||
routerLink: "dashboard"
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user