hausgold / ejabberd-read-markers Goto Github PK
View Code? Open in Web Editor NEWAllows users to acknowledge read messages and track unseen message counts per room
License: MIT License
Allows users to acknowledge read messages and track unseen message counts per room
License: MIT License
How do I get this to work for one to one chat messages, when Iโm not using muc?
I finally was able to get the module to install in the docker image using the guide at the following link.
https://docs.ejabberd.im/developer/extending-ejabberd/modules/#managing-your-own-modules
You can also see my Dockerfile
at the following location.
https://github.com/codejamninja/docker-ejabberd-read-markers/blob/master/latest/Dockerfile
This is the script I use to install it after ejabbered starts up. For some reason I cannot install it unless ejabberd is running.
https://github.com/codejamninja/docker-ejabberd-read-markers/blob/master/latest/install_modules.sh
Once it is installed however, I get the following error when sending the following query.
Outgoing Request from Client
<iq xmlns="jabber:client" from="[email protected]/abc" id="1593281703903" to="[email protected]" type="get">
<query xmlns="urn:xmpp:read-markers" jid="[email protected]" />
</iq>
Incoming Response from Server
<iq xmlns="jabber:client" xml:lang="en" to="[email protected]/abc" from="[email protected]" type="error" id="1593281703903">
<query xmlns="urn:xmpp:read-markers" jid="[email protected]" />
<error code="503" type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">No module is handling this query</text>
</error>
</iq>
I am getting the following error when running ejabbered after installing this module.
I am using ejabbered version 18.01
12:51:01.648 [error] CRASH REPORT Process <0.112.0> with 0 neighbours exited with reason: {undefined_macro,''} in application_master:init/4 line 134
12:51:01.648 [info] Application ejabberd exited with reason: {undefined_macro,''}
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_start_failure,ejabberd,{bad_return,{{ejabberd_app,start,[normal,[]]},{'EXIT',{undefined_macro,''}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,ejabberd,{bad_return,{{ejabberd_app,start,[normal,[]]},{'EXIT',{undefined_macro,''}}}}})
Crash dump is being written to: /home/ejabberd/logs/erl_crash_20200610-125100.dump...done
I get the following error when trying to install this module in the ejabberd/ecs
docker container.
Error: {"conf/mod_read_markers.yml",enoent}
I put the module in the ~/.ejabberd-modules/sources
directory
I am running the following command to install it.
~/bin/ejabberdctl module_install mod_read_markers
Any ideas what I am doing wrong?
Does the given DB table need to be modified to work with the "new schema" that supports multiple chat domains?
I'm running ejabberd 18.09. On install I get an error:
/opt/ejabberd-18.09/bin/ejabberdctl module_install mod_read_markers /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/hg_read_markers.erl:6: Warning: export_all flag enabled - all functions will be exported /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl:12: can't find include file "ejabberd.hrl" /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl:177: undefined macro 'TDICT' /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl:3: Warning: undefined callback function mod_options/1 (behaviour 'gen_mod') /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers_sql.erl:8: can't find include file "ejabberd.hrl" /opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers_sql.erl:3: Warning: behaviour mod_read_markers undefined Error: {compilation_failed,"/opt/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_read_markers/src/mod_read_markers.erl"}
When I try and compile ejabberd-read-markers along with ejabberd, I get the following compile errors.
src/hg_read_markers.erl:6: Warning: export_all flag enabled - all functions will be exported
src/mod_sip.erl:46: Warning: behaviour gen_mod undefined
src/mod_read_markers.erl:12: can't find include file "ejabberd.hrl"
src/mod_read_markers.erl:177: undefined macro 'TDICT'
src/mod_read_markers.erl:3: Warning: undefined callback function mod_doc/0 (behaviour 'gen_mod')
src/mod_read_markers.erl:3: Warning: undefined callback function mod_options/1 (behaviour 'gen_mod')
src/mod_read_markers_sql.erl:8: can't find include file "ejabberd.hrl"
src/mod_read_markers_sql.erl:3: Warning: behaviour mod_read_markers undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.