We are building a chat app using latest ejabberd and there is a use case where user A blocks user B. the requirement is to hide last seen or user's presence from each other. if A blocks B then its easy to hide these information from user A but how can user B be informed that user A has blocked them ? whats the best approach to tell user B the someone has blocked them on realtime while both are in a conversation , like whatsapp does now.
How can the recipient be informed that someone has blocked them on ejabberd?
111 Views Asked by Tareq Assi At
2
There are 2 best solutions below
0
Kenan Begić
On
There is XEP-0191: Simple Communications Blocking:
https://xmpp.org/extensions/xep-0191.html
https://xmpp.org/extensions/attic/xep-0191-0.2.html
I think it will give you the answers you need. Now it depends how will you implement this functionality using chosen client library like Smack.
Related Questions in XMPP
- How to Implement Chatbot at Scale
- How to connect Openfire with Kotlin
- Having trouble with node.js client joining a XMPP Prosody room
- Connecting to Openfire server from browser using xmpp.js
- Flutter xmpp_plugin - App crashes when open the app again
- XMPP - Openfire Subgroup
- Does the XMPP receipy still work in Franz
- Unable to retrieving chat history using Strophe.js and Ejabberd with XEP-0313: Message Archive Management (MAM)
- Integrate XMPP Openfire STUN server with client side js web application
- How to define a shaper in ejabberd for websocket connections?
- Accessing Content in XMPP PubSub Event Using pubsub:published Event (StanzaJS)
- Can xmpp server admin influence usage of omemo?
- is there anyone help me about this p2 ejabberd error?
- ejbberd : How to make IQ Handler parallel?
- Setup Ejabbered on a VPS
Related Questions in EJABBERD
- Ejabberd Migration from 23 to 24
- ejabberd_sql:handle_reconnect/2:491 odbc connection failed ejabberd
- How to define MAM archiving time
- How to configure Stun/Turn UDP port rang in ejabberd kuberbetes environment?
- ejabberd LDAP shared roster not displaying full user names
- ejabberd - Restrict of sending message to all resources if destination resource is not available
- Unable to retrieving chat history using Strophe.js and Ejabberd with XEP-0313: Message Archive Management (MAM)
- How do I create a new ejabberd user account via http
- How to define a shaper in ejabberd for websocket connections?
- Accessing Content in XMPP PubSub Event Using pubsub:published Event (StanzaJS)
- Ejabberd module can't be found
- Logging in on mod_conversejs served page returns errors
- Clustering Issue: User Creation Not Synchronized Across Nodes
- is there anyone help me about this p2 ejabberd error?
- ejbberd : How to make IQ Handler parallel?
Related Questions in SMACK
- How to Implement Chatbot at Scale
- Rabbitmq with Smack connection in Spring boot. Consumer stops if rabbitmq faces error
- Cannot send message with OMEMO encryption enabled: No OmemoService registered?
- Unable to Connect to XMPP Server using Smack on Real Device
- NetBeans 18 Maven JavaFX 20 project will not acknowledge smack [SOLVED]
- How can the signature of a jar used by a gradle dependency be invalid?
- Enabling stream management to use it in smack android application openfire v4.7.3
- "Content is not allowed in prolog" error when trying to connect to FCM XMPP endpoint with Smack library
- How to get list of MultiUserChat groups on an XMPP (ejabberd) server which a user is a member of?
- Ejabberd - get user from multi user chat message using Smack XMPP client or enforce nickname
- Why is this error occuring in a gradle version, but not a maven one?
- Implementing smack in android , after obfuscation getting error at runtime from smack library
- XMPP random XMLStreamException
- How to convert from String to IQ object in Smack
- Flutter / Android XmlPullParserException but ONLY in release mode, debug and profile works
Related Questions in XMPPFRAMEWORK
- iOS XMPP not able to send message
- xmpp - how to get room chat history
- expected an objective-c directive after '@'
- How to get last conversed user using XMPP ios8?
- MUC Light using XMPPFramework
- XMPP remote server connection issue iOS
- MAM XEP-0313 - Query conversation list for a particular user
- How to add user to existing ROOM in XMPP iOS?
- How we can upload image or photos to ejabberd XMPP web server?
- Ejabberd 16.09 Muc Discovery
- XEP-0363: HTTP File Upload in Swift
- XMPPFramework in podspec
- "unavailable"(Offline) presence not updating at the both end
- How to connect XMPP server through XMPPFramework in ios in objective c
- Trying to install XMPPFramework in my objective c Project using Podfile
Related Questions in EJABBERD-HOOKS
- Ejabberd Server-Consumer Communication Mode
- Configuration related issue while implementing pyejabberd message system
- How to add large number of users to muc room in ejabberd?
- Which hook to limit the number of messages a user can send per day?
- discord.py overwrite in create_text_channel permissions
- Custom module in Ejabberd is not called
- Problem using jid:make/2 in ejabberd-18.09
- How can the recipient be informed that someone has blocked them on ejabberd?
- ejabberd-18.12 : parse Packet inside hook
- correct syntax for the hook user_receive_packet in ejabberd-18.12?
- retrieve timestamp value inside muc_filter_message hook
- Configure HBase with Ejabberd
- Unable to understand a crash while adding a field in vcard in ejabberd
- Ejabberd Message delivery while application is terminated
- Module to handle custom iq stanzas does not work with ejabberd-18.09
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For presence, you do not have to use block, you can simply remove contacts from roster. That way, the other user is notified and can also stop sharing his presence.