[CCR] fixing order of execution for updating suggestion

using edit components instead of full message edit in message service bean
This commit is contained in:
Sheldan
2022-10-27 20:49:36 +02:00
parent e3dd89b0ef
commit 5a21f9642c
2 changed files with 3 additions and 3 deletions

View File

@@ -262,8 +262,9 @@ public class SuggestionServiceBean implements SuggestionService {
if(throwable == null) {
model.setSuggester(user);
}
self.updateSuggestionMessageText(reason, model).thenAccept(unused -> finalFuture.complete(null))
self.updateSuggestionMessageText(reason, model)
.thenAccept(unused -> self.removeSuggestionButtons(serverId, channelId, originalMessageId, suggestionId))
.thenAccept(unused -> finalFuture.complete(null))
.exceptionally(throwable1 -> {
finalFuture.completeExceptionally(throwable1);
return null;