Gospel Doctrines, pg. 110; “It is a well known truth that the counsel of the First Presidency of the Church, in all cases, has been and is against our brethren joining secret organizations for any purpose whatsoever, and that wherever any of them have already joined, they have been and are counseled to withdraw themselves from such organizations, as soon as circumstances permit and wisdom dictates.”
Psalm 10:6-7; “He hath said in his heart, I shall not be moved: for I shall never be in adversity. 7 His mouth is full of cursing and deceit and fraud: under his tongue is mischief and vanity.”
This means Joseph Smith was sinning.