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