From 5c5360de57071ef53562027b238f6200132c40ee Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Fri, 14 Jun 2024 01:25:12 +0900 Subject: [PATCH] =?utf8?q?preferred=E3=81=AE=E3=82=BF=E3=82=A4=E3=83=97?= =?utf8?q?=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween/SocialProtocol/AccountCollection.cs | 8 ++++---- OpenTween/Tween.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenTween/SocialProtocol/AccountCollection.cs b/OpenTween/SocialProtocol/AccountCollection.cs index 8ff60047..7bc88235 100644 --- a/OpenTween/SocialProtocol/AccountCollection.cs +++ b/OpenTween/SocialProtocol/AccountCollection.cs @@ -108,12 +108,12 @@ namespace OpenTween.SocialProtocol 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; diff --git a/OpenTween/Tween.cs b/OpenTween/Tween.cs index 42b425d9..559dc160 100644 --- a/OpenTween/Tween.cs +++ b/OpenTween/Tween.cs @@ -9004,8 +9004,8 @@ namespace OpenTween 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); } /// -- 2.11.0