Skip to content

Commit 9df968b

Browse files
committed
Register more collections for export
1 parent 53f4caa commit 9df968b

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

‎Telegram/Common/ExceptionSerializer.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ private static string TranslateText(string text)
731731
case "Eine Schnittstelle, die für einen anderen Thread marshalled war, wurde von der Anwendung aufgerufen.":
732732
case "Aplikacja wywołała interfejs, który został skierowany na inny wątek.":
733733
case "Приложение обратилось к интерфейсу, относящемуся к другому потоку.":
734+
case "应用程序调用一个已为另一线程整理的接口。":
734735
return "The application called an interface that was marshalled for a different thread.";
735736

736737
case "Les ressources mémoire disponibles sont insuffisantes pour exécuter cette opération.":

‎Telegram/CsWinRT.cs‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollection<object>))]
7676
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollection<Telegram.Td.Api.Chat>))]
7777
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollection<Telegram.Td.Api.ChatInviteLinkMember>))]
78+
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollection<Telegram.Td.Api.MessageSender>))]
79+
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollection<Telegram.Td.Api.Passkey>))]
7880
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollection<Telegram.ViewModels.Settings.ChatThemeViewModel>))]
7981
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollection<Telegram.ViewModels.Stories.StoryViewModel>))]
8082
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.IncrementalCollectionView<Telegram.Td.Api.ReceivedGift, Telegram.ViewModels.Profile.ProfileGiftsTabViewModel.ReceivedGiftsCollection>))]
@@ -85,11 +87,15 @@
8587
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.ViewModels.ChatFolderIcon2[]))]
8688
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Views.Popups.SettingsOptionItem<int>))]
8789
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Views.Stories.Popups.StealthPopup.StealthModeFeature[]))]
88-
89-
// GetReplyMarkupClip and GetRoundedPolygon take IVector<IVector<Rect>>. The outer list marshals on
90-
// its own, because the generator can see it at the call site; the inner one it never sees, since
91-
// that CCW is only needed when the native side calls GetAt. So the failure waits for a message with
92-
// an inline keyboard to be arranged and then throws out of ArrangeOverride.
90+
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.SortedObservableCollection<Telegram.Td.Api.ConnectedWebsite>))]
91+
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.SortedObservableCollection<Telegram.Td.Api.ChatMember>))]
92+
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.Collections.KeyedList<Telegram.ViewModels.Settings.KeyedGroup, Telegram.Td.Api.Chat>))]
93+
[assembly: GeneratedWinRTExposedExternalType(typeof(Telegram.ViewModels.KeyedCollection<Telegram.Td.Api.Message>))]
94+
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.ObjectModel.ObservableCollection<Telegram.Td.Api.ReceivedGift>))]
95+
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.Generic.List<Telegram.Td.Api.GroupCallMessage>))]
96+
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.Generic.List<Telegram.Td.Api.QuickReplyShortcut>))]
97+
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.Generic.Dictionary<System.Type, Telegram.Td.Api.Animation>))]
98+
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.ObjectModel.ReadOnlyDictionary<System.Type, Telegram.Td.Api.Animation>))]
9399
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.Generic.List<Windows.Foundation.Rect>))]
94100
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.Generic.List<System.Collections.Generic.IList<Windows.Foundation.Rect>>))]
95101
[assembly: GeneratedWinRTExposedExternalType(typeof(System.Collections.Generic.List<System.Collections.Generic.List<Windows.Foundation.Rect>>))]

0 commit comments

Comments
 (0)