GithubHelp home page GithubHelp logo

hausgold / ejabberd-read-markers Goto Github PK

View Code? Open in Web Editor NEW
3.0 12.0 4.0 227 KB

Allows users to acknowledge read messages and track unseen message counts per room

License: MIT License

Dockerfile 2.10% Makefile 15.54% Shell 14.80% Erlang 35.78% Ruby 0.33% JavaScript 31.44%
ejabberd oss ejabberd-module erlang

ejabberd-read-markers's People

Contributors

dependabot[bot] avatar jack12816 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ejabberd-read-markers's Issues

One to one message

How do I get this to work for one to one chat messages, when Iโ€™m not using muc?

No module is handling this query

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>

undefined_macro error

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

conf/mod_read_markers.yml file not found

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?

error on installing

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"}

Compile errors when compiling with ejabberd

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.