Skip to content

Commit

Permalink
Merge pull request #367 from opentween/fix-typo
Browse files Browse the repository at this point in the history
preferredのタイプミスを修正
  • Loading branch information
upsilon authored Jun 13, 2024
2 parents 9542148 + 5c5360d commit 81e9f27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions OpenTween/SocialProtocol/AccountCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ public ISocialAccount GetAccountForTab(TabModel tab)
return this.Primary;
}

public ISocialAccount? GetAccountForPostId(PostId postId, AccountKey? preferedAccountKey)
public ISocialAccount? GetAccountForPostId(PostId postId, AccountKey? preferredAccountKey)
{
if (preferedAccountKey != null && this.accounts.TryGetValue(preferedAccountKey.Value, out var preferedAccount))
if (preferredAccountKey != null && this.accounts.TryGetValue(preferredAccountKey.Value, out var preferredAccount))
{
if (preferedAccount.CanUsePostId(postId))
return preferedAccount;
if (preferredAccount.CanUsePostId(postId))
return preferredAccount;
}

var primaryAccount = this.Primary;
Expand Down
4 changes: 2 additions & 2 deletions OpenTween/Tween.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9004,8 +9004,8 @@ public async Task OpenRelatedTab(PostId statusId)

public ISocialAccount? GetAccountForPostId(PostId postId)
{
var preferedAccountKey = this.CurrentTab.SourceAccountKey;
return this.accounts.GetAccountForPostId(postId, preferedAccountKey);
var preferredAccountKey = this.CurrentTab.SourceAccountKey;
return this.accounts.GetAccountForPostId(postId, preferredAccountKey);
}

/// <summary>
Expand Down

0 comments on commit 81e9f27

Please sign in to comment.