Code Monkey home page Code Monkey logo

recipe-rocketchat's Introduction

Rocket.Chat for Franz

This is the official Franz recipe for Rocket.Chat

How to create your own Franz recipes:

recipe-rocketchat's People

Contributors

adlk avatar wouter0100 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

recipe-rocketchat's Issues

Unread badges stop working with rc v3.9++ - fix inside

with rc 3.9 they changed the sidebar and the css selectors for the unread counts wont work anymore

i would've made a PR but i seem to be unable to support both versions..

new code is

    const directMessages = document.querySelectorAll('.rcx-badge--danger').length;
    const indirectMessages = document.querySelectorAll('.rcx-sidebar-item--highlighted:not(.rcx-badge--danger)').length;

i tried it with an if, but for some reason it throws exceptions that directMessages would be undefined.. i dont get why.. maybe one of you guys can figure this out.

    if (document.querySelectorAll('.rc-box').length > 0) {
      const directMessages = document.querySelectorAll('.rcx-badge--danger').length;
      const indirectMessages = document.querySelectorAll(' .rcx-sidebar-item--highlighted:not(.rcx-badge--danger)').length;
    } else {
      // original definition
      const directMessages = Math.round(document.querySelectorAll('.unread.unread-mention, .badge--unread').length / 2);
      const indirectMessages = Math.round(document.querySelectorAll('.unread:not(.unread-mention), .sidebar-item--unread').length / 2);    
    }

Custom avatar

Just like Slack, it would be awesome to have a custom avatar. Rocket.Chat supplies all kind of sizes for different platforms. Franz should be able to use one of these.

Screenshot from Rocket.Chat admin with all options:
image

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.