From fba36dbff6aa95d005bf0371838fa69b0ebd9816 Mon Sep 17 00:00:00 2001 From: Jesus Fuentes Date: Sun, 1 Apr 2018 09:12:31 -0500 Subject: [PATCH] Update/Edit documentation --- documentation/extensions/invitation.md | 3 +-- documentation/extensions/mam.md | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/documentation/extensions/invitation.md b/documentation/extensions/invitation.md index 72a1d8fb0..f940bb06f 100644 --- a/documentation/extensions/invitation.md +++ b/documentation/extensions/invitation.md @@ -19,8 +19,7 @@ group chat room, address a new message to the user and set the room name appropriately, as in the following code example: ``` -Message message = new Message("user@chat.example.com"); -message.setBody("Join me for a group chat!"); +Message message = new Message("user@chat.example.com", "Join me for a group chat!"); message.addExtension(new GroupChatInvitation("room@chat.example.com")); con.sendStanza(message); ``` diff --git a/documentation/extensions/mam.md b/documentation/extensions/mam.md index 2ff340f79..868163b16 100644 --- a/documentation/extensions/mam.md +++ b/documentation/extensions/mam.md @@ -28,7 +28,7 @@ Check MAM support ----------------- ``` -boolean isSupported = mamManager.isSupportedByServer(); +boolean isSupported = mamManager.isSupported(); ``` @@ -100,7 +100,7 @@ MamQueryResult mamQueryResult = mamManager.queryArchive(max, start, end, withJid List forwardedMessages = mamQueryResult.forwardedMessages; // Get fin IQ -MamFinIQ mamFinIQ = mamQueryResult.mamFinIQ; +MamFinIQ mamFinIQ = mamQueryResult.mamFin; ``` @@ -176,7 +176,7 @@ List neverJids = mamPrefs.getNeverJids(); DefaultBehavior defaultBehavior = mamPrefs.getDefault(); // Get the data form -DataForm dataForm = mamPrefs.form; +DataForm dataForm = mamPrefsResult.form; ```