Skip to content

Commit

Permalink
fix message list error
Browse files Browse the repository at this point in the history
  • Loading branch information
moonheart committed Nov 1, 2023
1 parent d47ee41 commit 163dab4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ README.md
**/account.xml
**/runtimeinfo.json
**/usersyncdata.json
**/Assets/
**/Assets/

MementoMori.AssetDownloader/Assets
MementoMori.AssetDownloader/Assets*
MementoMori.AssetDownloader/apk*
publish-linux-x64
publish-win-x64
2 changes: 1 addition & 1 deletion MementoMori.WebUI/Pages/Components/MessageList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
{
try
{
_messageList = Funcs.MesssageList.ToList();
Funcs.MesssageList.ObserveCollectionChanges().Throttle(TimeSpan.FromMilliseconds(50)).Subscribe(set =>
{
try
{
_messageList.Clear();
_messageList = Funcs.MesssageList.ToList();
}
catch
Expand Down
8 changes: 7 additions & 1 deletion MementoMori/Jobs/TimeZoneAwareJobRegister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public async Task DeregisterJobs(long userId)
public async Task RegisterJobs(long userId)
{
var account = _accountManager.Get(userId);
if (!account.Funcs.LoginOk)
{
return;
}

var networkManager = account.NetworkManager;
var scheduler = await _schedulerFactory.GetScheduler();
if (_gameConfig.Value.AutoJob.DisableAll)
Expand All @@ -58,7 +63,8 @@ public async Task RegisterJobs(long userId)
AddJob<GuildRaidBossReleaseJob>(scheduler, _gameConfig.Value.AutoJob.GuildRaidBossReleaseCron, Masters.TextResourceTable.Get("[GuildRaidReleaseConfirmTitle]"), userId,
networkManager.TimeManager.DiffFromUtc);
AddJob<AutoBuyShopItemJob>(scheduler, _gameConfig.Value.AutoJob.AutoBuyShopItemJobCron, ResourceStrings.ShopAutoBuyItems, userId, networkManager.TimeManager.DiffFromUtc);
AddJob<LocalRaidJob>(scheduler, _gameConfig.Value.AutoJob.AutoLocalRaidJobCron, Masters.TextResourceTable.Get("[CommonHeaderLocalRaidLabel]"), userId, networkManager.TimeManager.DiffFromUtc);
AddJob<LocalRaidJob>(scheduler, _gameConfig.Value.AutoJob.AutoLocalRaidJobCron, Masters.TextResourceTable.Get("[CommonHeaderLocalRaidLabel]"), userId,
networkManager.TimeManager.DiffFromUtc);
}
catch (Exception e)
{
Expand Down

0 comments on commit 163dab4

Please sign in to comment.