Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "fix conflict" #653

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public async Task<List<BotGroup>> GetCachedGroups(bool refreshCache, Cancellatio
return _uinToUid.GetValueOrDefault(friendUin);
}

public async Task<uint?> ResolveUin(uint? groupUin, string friendUid, bool force = false, CancellationToken cancellationToken = default)
public async Task<uint?> ResolveUin(uint? groupUin, string friendUid, bool force, CancellationToken cancellationToken)
{
if (_uinToUid.Count == 0) await ResolveFriendsUidAndFriendGroups(cancellationToken);
if (groupUin == null) return _uinToUid.FirstOrDefault(x => x.Value == friendUid).Key;
Expand All @@ -85,7 +85,7 @@ public async Task<List<BotGroup>> GetCachedGroups(bool refreshCache, Cancellatio
return _uinToUid.FirstOrDefault(x => x.Value == friendUid).Key;
}

public async Task<List<BotGroupMember>> GetCachedMembers(uint groupUin, bool refreshCache, CancellationToken cancellationToken = default)
public async Task<List<BotGroupMember>> GetCachedMembers(uint groupUin, bool refreshCache, CancellationToken cancellationToken)
{
if (!_cachedGroupMembers.TryGetValue(groupUin, out var members) || refreshCache)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
}
case GroupSysTodoEvent todo:
{
uint uin = await Collection.Business.CachingLogic.ResolveUin(todo.GroupUin, todo.OperatorUid, false, cancellationToken) ?? 0;
uint uin = await Collection.Business.CachingLogic.ResolveUin(todo.GroupUin, todo.OperatorUid) ?? 0;

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (win-x86)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-musl-arm)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-musl-x64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (win-x64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-musl-arm)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-musl-arm64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (win-x86)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-musl-x64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Check failure on line 241 in Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64)

There is no argument given that corresponds to the required parameter 'force' of 'CachingLogic.ResolveUin(uint?, string, bool, CancellationToken)'

Collection.Invoker.PostEvent(new GroupTodoEvent(todo.GroupUin, uin));
break;
Expand Down
Loading