dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit e8638a1530597b8eedcb9d52c02099cad4418061
parent 42c74ad587bdb983595e8fe21c0a57b74b225d9b
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon,  1 Jan 2024 18:04:28 -0500

cleanup

Diffstat:
Mpkg/web/handlers/interceptors/slashInterceptor.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/web/handlers/interceptors/slashInterceptor.go b/pkg/web/handlers/interceptors/slashInterceptor.go @@ -1413,8 +1413,7 @@ func handleDeleteMsgCmd(c *command.Command) (handled bool) { return err } if msg.RoomID == config.GeneralRoomID && !msg.IsPm() { - msg.User.GeneralMessagesCount-- - msg.User.DoSave(c.DB) + msg.User.DecrGeneralMessagesCount(c.DB) } _ = msg.Delete(c.DB) return command.ErrRedirect