TP-51197 | Fixed meeting link display in blaze channel (#326)

* TP-38709 | Merging the changes to master on the logfix

* TP-51197 | Fixed meeting link display on blaze channel

* TP-51197 | Fixed label for meeting not available
This commit is contained in:
Ajay Devarakonda
2023-12-15 14:46:21 +05:30
committed by GitHub
parent be6a5942f2
commit 4c0fbceb33
2 changed files with 4 additions and 2 deletions

View File

@@ -119,7 +119,9 @@ func (isp *CreateIncidentAction) CreateIncidentModalCommandProcessing(callback s
} else {
util.UpdateIncidentWithConferenceDetails(incidentEntity, calendarEvent, isp.incidentRepository)
msgUpdate := NewIncidentChannelMessageUpdateAction(isp.client, isp.incidentRepository, isp.teamRepository, isp.severityRepository)
blazeMessageUpdate := msgUpdate
msgUpdate.ProcessAction(incidentEntity.SlackChannel)
blazeMessageUpdate.ProcessAction(callback.Channel.ID)
bookmarkParam := slack.AddBookmarkParameters{Link: calendarEvent.ConferenceLink, Title: calendarService.GetConferenceTitle()}
_, err := isp.client.AddBookmark(*channelID, bookmarkParam)
if err != nil {

View File

@@ -63,9 +63,9 @@ func buildSeverityAndTicketSectionBlock(severityName string) *slack.SectionBlock
}
func buildStatusAndConferenceLinkSectionBlock(incidentStatus string, conferenceLink string) *slack.SectionBlock {
var conferenceLinkLabel = "Integration Disabled"
var conferenceLinkLabel = "Not available"
if conferenceLink != "" {
conferenceLinkLabel = conferenceLink
conferenceLinkLabel = fmt.Sprintf("*<%s|Google Meet>*", conferenceLink)
}
fields := []*slack.TextBlockObject{
slack.NewTextBlockObject("mrkdwn", fmt.Sprintf("*Status*\n%s", incidentStatus), false, false),