Skip to content

Commit

Permalink
Merge pull request #486 from team-yello/staging
Browse files Browse the repository at this point in the history
[hotfix] slack message fix
  • Loading branch information
euije authored Mar 25, 2024
2 parents fa222e9 + 7e70ac9 commit 53131df
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import com.slack.api.model.block.DividerBlock;
import com.slack.api.model.block.HeaderBlock;
import com.slack.api.model.block.SectionBlock;
import com.slack.api.model.block.UnknownBlock;
import com.slack.api.model.block.UnknownBlockElement;
import com.slack.api.model.block.composition.MarkdownTextObject;
import com.slack.api.model.block.composition.PlainTextObject;
import com.slack.api.model.block.element.ButtonElement;
Expand Down Expand Up @@ -389,7 +387,7 @@ public com.slack.api.webhook.Payload generateGoogleStateChangedMessage(HttpServl
.build(),
(
productType == ProductType.TEST ?
UnknownBlock.builder().build() :
DividerBlock.builder().build() :
SectionBlock.builder()
.text(MarkdownTextObject.builder()
.text(String.format(GOOGLE_STATE_SECTION_0_TEXT,
Expand All @@ -405,11 +403,7 @@ public com.slack.api.webhook.Payload generateGoogleStateChangedMessage(HttpServl
.build())
.build()
),
(
productType == ProductType.TEST ?
UnknownBlock.builder().build() :
DividerBlock.builder().build()
),
DividerBlock.builder().build(),
SectionBlock.builder()
.text(MarkdownTextObject.builder()
.text(String.format(GOOGLE_STATE_SECTION_1_TEXT,
Expand All @@ -425,7 +419,9 @@ public com.slack.api.webhook.Payload generateGoogleStateChangedMessage(HttpServl
.elements(List.of(
(
productType == ProductType.TEST ?
UnknownBlockElement.builder().build() :
ButtonElement.builder()
.text(PlainTextObject.builder().text(".").build())
.build() :
ButtonElement.builder()
.text(PlainTextObject.builder()
.text(GOOGLE_STATE_BUTTON_0_TITLE)
Expand Down

0 comments on commit 53131df

Please sign in to comment.