mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Introduce StanzaBuilder
As first step to immutable Stanza types.
This commit is contained in:
parent
926c5892ad
commit
5db6191110
134 changed files with 2576 additions and 764 deletions
|
@ -1070,8 +1070,10 @@ public final class JingleSession extends JingleNegotiator implements MediaReceiv
|
|||
IQ errorPacket = null;
|
||||
if (jingleError != null) {
|
||||
// TODO This is wrong according to XEP-166 § 10, but this jingle implementation is deprecated anyways
|
||||
StanzaError.Builder builder = StanzaError.getBuilder(StanzaError.Condition.undefined_condition);
|
||||
builder.addExtension(jingleError);
|
||||
StanzaError builder = StanzaError.getBuilder()
|
||||
.setCondition(StanzaError.Condition.undefined_condition)
|
||||
.addExtension(jingleError)
|
||||
.build();
|
||||
|
||||
errorPacket = IQ.createErrorResponse(iq, builder);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue