Skip to content

Commit

Permalink
feat(MessageService): remove unnecessary duplicate `:_LoadSavedMessag…
Browse files Browse the repository at this point in the history
…es()` call
  • Loading branch information
Cuh4 committed Oct 21, 2024
1 parent 63628ea commit 0d70b14
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Noir/Built-Ins/Services/MessageService.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,10 @@ function Noir.Services.MessageService:ServiceInit()
self._MessageLimit = 220

self.OnMessage = Noir.Libraries.Events:Create()

self:_LoadSavedMessages()
end

function Noir.Services.MessageService:ServiceStart()
self:_LoadSavedMessages()

self._OnChatMessageConnection = Noir.Callbacks:Connect("onChatMessage", function(peerID, title, message)
-- Get author of message (player)
local author = Noir.Services.PlayerService:GetPlayer(peerID)
Expand Down

0 comments on commit 0d70b14

Please sign in to comment.