private string GetJoinedByMessage() { LocalizedString localizedString = LocalizedString.Empty; if (this.AddedByRecipient) { BaseGroupMessageComposer.Tracer.TraceDebug((long)this.GetHashCode(), "WelcomeToGroupMessageComposer.GetJoinedByMessage: executingUser is unknown or by user himself."); localizedString = ClientStrings.GroupMailboxWelcomeEmailSecondaryHeaderYouJoined(this.template.EncodedGroupDisplayName); } else { BaseGroupMessageComposer.Tracer.TraceDebug <ADObjectId, ADObjectId>((long)this.GetHashCode(), "WelcomeToGroupMessageComposer.GetJoinedByMessage: executingUser is different than the one joining the group, returning message header for added member. ExecutingUser.AdObjectId: {0}, NewMember.AdObjectId: {1}.", this.template.ExecutingUser.Id, this.recipient.Id); localizedString = ClientStrings.GroupMailboxWelcomeEmailSecondaryHeaderAddedBy(this.template.EncodedExecutingUserDisplayName, this.template.EncodedGroupDisplayName); } return(localizedString.ToString(this.preferredCulture)); }