File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ public void PostMessage(
543
543
bool linkNames = false ,
544
544
IBlock [ ] blocks = null ,
545
545
Attachment [ ] attachments = null ,
546
- bool unfurl_links = false ,
546
+ bool ? unfurl_links = null ,
547
547
string icon_url = null ,
548
548
string icon_emoji = null ,
549
549
bool ? as_user = null ,
@@ -579,8 +579,8 @@ public void PostMessage(
579
579
NullValueHandling = NullValueHandling . Ignore
580
580
} ) ) ) ;
581
581
582
- if ( unfurl_links )
583
- parameters . Add ( new Tuple < string , string > ( "unfurl_links" , "1 ") ) ;
582
+ if ( unfurl_links . HasValue )
583
+ parameters . Add ( new Tuple < string , string > ( "unfurl_links" , unfurl_links . Value ? "true" : "false ") ) ;
584
584
585
585
if ( ! string . IsNullOrEmpty ( icon_url ) )
586
586
parameters . Add ( new Tuple < string , string > ( "icon_url" , icon_url ) ) ;
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ public Task<PostMessageResponse> PostMessageAsync(
496
496
bool linkNames = false ,
497
497
IBlock [ ] blocks = null ,
498
498
Attachment [ ] attachments = null ,
499
- bool unfurl_links = false ,
499
+ bool ? unfurl_links = null ,
500
500
string icon_url = null ,
501
501
string icon_emoji = null ,
502
502
bool as_user = false )
@@ -529,8 +529,8 @@ public Task<PostMessageResponse> PostMessageAsync(
529
529
NullValueHandling = NullValueHandling . Ignore
530
530
} ) ) ) ;
531
531
532
- if ( unfurl_links )
533
- parameters . Add ( new Tuple < string , string > ( "unfurl_links" , "1 ") ) ;
532
+ if ( unfurl_links . HasValue )
533
+ parameters . Add ( new Tuple < string , string > ( "unfurl_links" , unfurl_links . Value ? "true" : "false ") ) ;
534
534
535
535
if ( ! string . IsNullOrEmpty ( icon_url ) )
536
536
parameters . Add ( new Tuple < string , string > ( "icon_url" , icon_url ) ) ;
You can’t perform that action at this time.
0 commit comments