Send sticker: Fix the missing delete button on a sticker pack

https://github.com/vector-im/riot-ios/issues/1860
This commit is contained in:
manuroe
2018-05-24 18:22:59 +02:00
parent e0ef526204
commit fb24d4b976
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -2886,7 +2886,7 @@
initForMXSession:self.roomDataSource.mxSession
inRoom:self.roomDataSource.roomId
screen:[IntegrationManagerViewController screenForWidget:kWidgetTypeStickerPicker]
widgetId:kWidgetTypeStickerPicker];
widgetId:nil];
[self presentViewController:modularVC animated:NO completion:nil];
}
@@ -52,7 +52,7 @@
initForMXSession:self.roomDataSource.mxSession
inRoom:self.roomDataSource.roomId
screen:[IntegrationManagerViewController screenForWidget:kWidgetTypeStickerPicker]
widgetId:kWidgetTypeStickerPicker];
widgetId:self.widget.widgetId];
[self presentViewController:modularVC animated:NO completion:nil];
}
@@ -27,6 +27,11 @@
*/
@interface WidgetViewController : WebViewViewController
/**
The displayed widget.
*/
@property (nonatomic, readonly) Widget *widget;
/**
The room data source.
Required if the widget needs to post messages.
@@ -21,13 +21,11 @@
NSString *const kJavascriptSendResponseToPostMessageAPI = @"riotIOS.sendResponse('%@', %@);";
@interface WidgetViewController ()
{
Widget *widget;
}
@end
@implementation WidgetViewController
@synthesize widget;
- (instancetype)initWithUrl:(NSString*)widgetUrl forWidget:(Widget*)theWidget
{