TF-2532 Only clear old data stream when add object to stream in share file
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 181e1ec20dafe4f865d0f2ce606311cf216e06fd)
This commit is contained in:
-3
@@ -416,7 +416,6 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
_emailAddressStreamSubscription =
|
||||
_emailReceiveManager.pendingEmailAddressInfo.stream.listen((emailAddress) {
|
||||
if (emailAddress?.email?.isNotEmpty == true) {
|
||||
_emailReceiveManager.clearPendingEmailAddress();
|
||||
goToComposer(ComposerArguments.fromEmailAddress(emailAddress!));
|
||||
}
|
||||
});
|
||||
@@ -426,7 +425,6 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
_emailContentStreamSubscription =
|
||||
_emailReceiveManager.pendingEmailContentInfo.stream.listen((emailContent) {
|
||||
if (emailContent?.content.isNotEmpty == true) {
|
||||
_emailReceiveManager.clearPendingEmailContent();
|
||||
goToComposer(ComposerArguments.fromContentShared([emailContent!].asHtmlString));
|
||||
}
|
||||
});
|
||||
@@ -436,7 +434,6 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
_fileReceiveManagerStreamSubscription =
|
||||
_emailReceiveManager.pendingFileInfo.stream.listen((listFile) {
|
||||
if (listFile.isNotEmpty) {
|
||||
_emailReceiveManager.clearPendingFileInfo();
|
||||
goToComposer(ComposerArguments.fromFileShared(listFile));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user