Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel Invite Decline response wrong - Bug #56

Open
cimframe opened this issue Mar 26, 2017 · 0 comments
Open

Channel Invite Decline response wrong - Bug #56

cimframe opened this issue Mar 26, 2017 · 0 comments

Comments

@cimframe
Copy link

I found in testing that the whole InviteDeclined class was not forming the response message correctly. The old code:

public InviteDeclined(Invite invite, string reason)
            : base(invite.From, invite.To, Xml.Element(xTag, MucNs.NsUser)) {
        XElement.Child(Xml.Element(inviteTag).Child(Xml.Element(reasonTag)));
        SendTo = invite.ReceivedFrom;
        Reason = reason;
}

Should read:

public InviteDeclined (Invite invite, string reason)
		: base (invite.To, invite.From, Xml.Element (xTag, MucNs.NsUser)) {
	XElement.Child (Xml.Element (inviteTag).Child (Xml.Element (reasonTag)));
	SendTo = invite.SendTo;
	Reason = reason;
}

The code was sending the decline response to the user who was doing the declining instead of the person who did the inviting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant