mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-18 16:47:58 +01:00
Merge pull request #221 from fuentesj11/update-docs3
Update/Edit invitation.md and mam.md
This commit is contained in:
commit
5f83edb86b
2 changed files with 4 additions and 5 deletions
|
@ -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:
|
appropriately, as in the following code example:
|
||||||
|
|
||||||
```
|
```
|
||||||
Message message = new Message("user@chat.example.com");
|
Message message = new Message("user@chat.example.com", "Join me for a group chat!");
|
||||||
message.setBody("Join me for a group chat!");
|
|
||||||
message.addExtension(new GroupChatInvitation("room@chat.example.com"));
|
message.addExtension(new GroupChatInvitation("room@chat.example.com"));
|
||||||
con.sendStanza(message);
|
con.sendStanza(message);
|
||||||
```
|
```
|
||||||
|
|
|
@ -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<Forwarded> forwardedMessages = mamQueryResult.forwardedMessages;
|
List<Forwarded> forwardedMessages = mamQueryResult.forwardedMessages;
|
||||||
|
|
||||||
// Get fin IQ
|
// Get fin IQ
|
||||||
MamFinIQ mamFinIQ = mamQueryResult.mamFinIQ;
|
MamFinIQ mamFinIQ = mamQueryResult.mamFin;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ List<Jid> neverJids = mamPrefs.getNeverJids();
|
||||||
DefaultBehavior defaultBehavior = mamPrefs.getDefault();
|
DefaultBehavior defaultBehavior = mamPrefs.getDefault();
|
||||||
|
|
||||||
// Get the data form
|
// Get the data form
|
||||||
DataForm dataForm = mamPrefs.form;
|
DataForm dataForm = mamPrefsResult.form;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue