Skip to content

Commit

Permalink
Fix for creating private channels
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikhellgren committed Oct 26, 2022
1 parent 95a15c2 commit a52889c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ private static string CreateTeamChannel(PnPMonitoredScope scope, Model.Teams.Tea
displayName = parser.ParseString(channel.DisplayName),
isFavoriteByDefault = channel.Private ? false : channel.IsFavoriteByDefault,
membershipType = channel.Private ? "private" : "standard",
moderationSettings = new Dictionary<string, object>{
moderationSettings = channel.Private ? null : new Dictionary<string, object>{
{ "userNewMessageRestriction", channel.UserNewMessageRestriction },
{ "replyRestriction", channel.ReplyRestriction },
{ "allowNewMessageFromBots", channel.AllowNewMessageFromBots },
Expand Down

0 comments on commit a52889c

Please # to comment.