mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-24 06:24:02 +01:00
Fix warnings
This commit is contained in:
parent
361ad357db
commit
315d15b256
@ -72,7 +72,7 @@ extension DataSourceFacade {
|
|||||||
) async throws {
|
) async throws {
|
||||||
switch buttonState {
|
switch buttonState {
|
||||||
case .follow:
|
case .follow:
|
||||||
try await DataSourceFacade.responseToUserFollowAction(
|
_ = try await DataSourceFacade.responseToUserFollowAction(
|
||||||
dependency: dependency,
|
dependency: dependency,
|
||||||
user: user
|
user: user
|
||||||
)
|
)
|
||||||
@ -80,21 +80,21 @@ extension DataSourceFacade {
|
|||||||
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.append(user.id)
|
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.append(user.id)
|
||||||
|
|
||||||
case .request:
|
case .request:
|
||||||
try await DataSourceFacade.responseToUserFollowAction(
|
_ = try await DataSourceFacade.responseToUserFollowAction(
|
||||||
dependency: dependency,
|
dependency: dependency,
|
||||||
user: user
|
user: user
|
||||||
)
|
)
|
||||||
|
|
||||||
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followRequestedUserIDs.append(user.id)
|
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followRequestedUserIDs.append(user.id)
|
||||||
case .unfollow:
|
case .unfollow:
|
||||||
try await DataSourceFacade.responseToUserFollowAction(
|
_ = try await DataSourceFacade.responseToUserFollowAction(
|
||||||
dependency: dependency,
|
dependency: dependency,
|
||||||
user: user
|
user: user
|
||||||
)
|
)
|
||||||
|
|
||||||
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.removeAll(where: { $0 == user.id })
|
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.removeAll(where: { $0 == user.id })
|
||||||
case .blocked:
|
case .blocked:
|
||||||
try await DataSourceFacade.responseToUserBlockAction(
|
try await DataSourceFacade.responseToUserBlockAction(
|
||||||
dependency: dependency,
|
dependency: dependency,
|
||||||
user: user
|
user: user
|
||||||
)
|
)
|
||||||
@ -102,7 +102,7 @@ extension DataSourceFacade {
|
|||||||
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.blockedUserIds.append(user.id)
|
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.blockedUserIds.append(user.id)
|
||||||
|
|
||||||
case .pending:
|
case .pending:
|
||||||
try await DataSourceFacade.responseToUserFollowAction(
|
_ = try await DataSourceFacade.responseToUserFollowAction(
|
||||||
dependency: dependency,
|
dependency: dependency,
|
||||||
user: user
|
user: user
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user