| | 1 | | using DCL.Chat.Channels; |
| | 2 | |
|
| | 3 | | namespace DCL.Chat.Notifications |
| | 4 | | { |
| | 5 | | /// <summary> |
| | 6 | | /// Plugin feature that initialize the chat notifications feature. |
| | 7 | | /// </summary> |
| | 8 | | public class ChatNotificationsFeature : IPlugin |
| | 9 | | { |
| | 10 | | private readonly ChatNotificationController chatNotificationController; |
| | 11 | |
|
| 0 | 12 | | public ChatNotificationsFeature() |
| | 13 | | { |
| 0 | 14 | | chatNotificationController = CreateController(); |
| 0 | 15 | | } |
| | 16 | |
|
| 0 | 17 | | private ChatNotificationController CreateController() => new ChatNotificationController(DataStore.i, |
| | 18 | | MainChatNotificationsComponentView.Create(), TopNotificationComponentView.Create(), |
| | 19 | | ChatController.i, |
| | 20 | | new UserProfileWebInterfaceBridge(), |
| | 21 | | ProfanityFilterSharedInstances.regexFilter); |
| | 22 | |
|
| | 23 | | public void Dispose() |
| | 24 | | { |
| 0 | 25 | | chatNotificationController.Dispose(); |
| 0 | 26 | | } |
| | 27 | | } |
| | 28 | | } |