Chat wallpaper improvements

This commit is contained in:
Ilya Laktyushin
2023-04-06 20:10:57 +04:00
parent 34062b0a06
commit 4fa1d5462d
11 changed files with 112 additions and 139 deletions

View File

@@ -110,8 +110,8 @@ func telegramMediaActionFromApiAction(_ action: Api.MessageAction) -> TelegramMe
return TelegramMediaAction(action: .requestedPeer(buttonId: buttonId, peerId: peer.peerId))
case let .messageActionSetChatWallPaper(wallpaper):
return TelegramMediaAction(action: .setChatWallpaper(wallpaper: TelegramWallpaper(apiWallpaper: wallpaper)))
case .messageActionSetSameChatWallPaper:
return TelegramMediaAction(action: .setSameChatWallpaper)
case let .messageActionSetSameChatWallPaper(wallpaper):
return TelegramMediaAction(action: .setSameChatWallpaper(wallpaper: TelegramWallpaper(apiWallpaper: wallpaper)))
}
}