Use RoomId for room by room drafts.

This commit is contained in:
David Langley
2021-09-23 08:48:15 +01:00
parent fb5b1b28e9
commit 350fc0fe30
2 changed files with 67 additions and 19 deletions
+2 -1
View File
@@ -327,7 +327,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
// Show / hide actions button in document preview according BuildSettings
self.allowActionsInDocumentPreview = BuildSettings.messageDetailsAllowShare;
_voiceMessageController = [[VoiceMessageController alloc] initWithThemeService:ThemeService.shared mediaServiceProvider:VoiceMessageMediaServiceProvider.sharedProvider];
_voiceMessageController = [[VoiceMessageController alloc] initWithThemeService: ThemeService.shared mediaServiceProvider:VoiceMessageMediaServiceProvider.sharedProvider];
self.voiceMessageController.delegate = self;
}
@@ -1013,6 +1013,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
[self refreshRoomInputToolbar];
[VoiceMessageMediaServiceProvider.sharedProvider setCurrentRoomSummary:dataSource.room.summary];
_voiceMessageController.roomId = dataSource.roomId;
}
- (void)onRoomDataSourceReady