mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 18:29:45 +02:00
Merge branch '4.2'
This commit is contained in:
commit
f42d9137b5
17 changed files with 537 additions and 69 deletions
|
@ -95,6 +95,7 @@ Experimental Smack Extensions and currently supported XEPs of smack-experimental
|
|||
| [Push Notifications](pushnotifications.md) | [XEP-0357](http://xmpp.org/extensions/xep-0357.html) | Defines a way to manage push notifications from an XMPP Server. |
|
||||
| Stable and Unique Stanza IDs | [XEP-0359](http://xmpp.org/extensions/xep-0359.html) | This specification describes unique and stable IDs for messages. |
|
||||
| HTTP File Upload | [XEP-0363](http://xmpp.org/extensions/xep-0363.html) | Protocol to request permissions to upload a file to an HTTP server and get a shareable URL. |
|
||||
| References | [XEP-0372](http://xmpp.org/extensions/xep-0363.html) | Add references like mentions or external data to stanzas. |
|
||||
| [Spoiler Messages](spoiler.md) | [XEP-0382](http://xmpp.org/extensions/xep-0382.html) | Indicate that the body of a message should be treated as a spoiler |
|
||||
| [Multi-User Chat Light](muclight.md) | [XEP-xxxx](http://mongooseim.readthedocs.io/en/latest/open-extensions/xeps/xep-muc-light.html) | Multi-User Chats for mobile XMPP applications and specific enviroment. |
|
||||
| [OMEMO Multi End Message and Object Encryption](omemo.md) | [XEP-XXXX](https://conversations.im/omemo/xep-omemo.html) | Encrypt messages using OMEMO encryption (currently only with smack-omemo-signal -> GPLv3). |
|
||||
|
|
19
documentation/extensions/references.md
Normal file
19
documentation/extensions/references.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
References
|
||||
==========
|
||||
|
||||
[Back](index.md)
|
||||
|
||||
References are a way to refer to other entities like users, other messages or external data from within a message.
|
||||
|
||||
Typical use-cases are mentioning other users by name, but referencing to their BareJid, or linking to a sent file.
|
||||
|
||||
## Usage
|
||||
|
||||
Mention a user and link to their bare jid.
|
||||
```
|
||||
Message message = new Message("Alice is a realy nice person.");
|
||||
BareJid alice = JidCreate.bareFrom("alice@capulet.lit");
|
||||
ReferenceManager.addMention(message, 0, 5, alice);
|
||||
```
|
||||
|
||||
TODO: Add more use cases (for example for MIX, SIMS...)
|
Loading…
Add table
Add a link
Reference in a new issue