Skip to content

Commit

Permalink
fix : IsAppInWebsiteMessage judgment error (#320)
Browse files Browse the repository at this point in the history
* feat : GetMessageTask add messageInfo

* reactor : messageTask add extraProperties

* reactor : websiteMessage add extraProperties

* fix : IsAppInWebsiteMessage judgment error
  • Loading branch information
wzh425 authored Feb 22, 2023
1 parent 4576ba7 commit 6a1ec08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@ public List<MessageReceiverUser> GetHistoryReceiverUsers(int historyNum, int sen

public bool IsAppInWebsiteMessage()
{
return ChannelType == ChannelType.App && ExtraProperties.GetProperty<bool>("IsWebsiteMessage");
return ChannelType?.Id == ChannelType.App.Id && ExtraProperties.GetProperty<bool>("IsWebsiteMessage");
}
}

0 comments on commit 6a1ec08

Please sign in to comment.