Skip to content

Mattermost native desktop client, using the QT framework

License

Notifications You must be signed in to change notification settings

Diadlo/mattermost-qt

 
 

Repository files navigation

Build status

mattermost-qt

Mattermost native desktop client, using the QT framework

Motivation

  • I was waiting too long for an open-source chat system, where you can develop a custom client application
  • I want to get familiar with QT Desktop application development
  • The official Mattermost desktop client is actually a javascript / typescript web application, running inside a dedicated web browser. This makes it veeery slow, it creates at least 10 processes and consumes a lot of RAM
  • Also, such 'modern' web-based applications have some drawbacks:
    • No file transfer over LAN (yes, it makes transferring large files easier and sometimes people need to transfer large files)
    • They do not allow to quickly open an attached image in a new window - so that you can see the chat window and one or multiple (full-size) images at the same time. All 'fancy' messengers that I am using (Skype, FB messenger, official Mattermost) alway open attached images in the same window, over the chat area, so that you cannot see the chat and the image at the same time. The only way is to download the image and open it. And later, remove it if you don't want your home directory to be filled with unneeded image files.

What does work

  • viewing all available channels
  • Sending and receiving messages
  • visual notifications for new messages
  • message editing and deleting
  • Receiving attached files. Image files can be viewed in a simple viewer and other files can be downloaded or opened with default application
  • Sending messages with attachments is supported too
  • If a reconnect occurs, the chat history is synchronized with the server, so that no messages are lost.
  • Cache is used for faster image loading.
  • update, when a new team is added and you are added to it
  • Preview of team members, channel members, users, etc. There are more items to be added, but the basic functionality is supported
  • Properly handing adding / deleting users / channels / teams. However, it has to be tested more
  • loading channel history when scrolling to the beginning of a channel
  • emoticons, reactions, etc... (visual pleasures :) )

What does not work / What is planned to be implemented

  • notifications when someone is typing and sending a notification when you are typing
  • pinning posts to a channel and displaying pinned posts
  • adding additional settings... I want this application to be fully customizable

What is planned in a perfect world (when I have a time to do it)

  • voice calls
  • LAN file transfer between 2 QT Mattermost clients
  • Auto-detect if you are working from home and setting it as a status. This can be achieved by looking for an active VPN connection. It will be fully configurable from the settings

Installation

The application is developed and tested on Ubuntu linux. I have build and tested it also on Windows 7 and Windows 10. Release 1.1 even includes a standalone build, suitable to be run from windows

Required packages (Linux)

Ubuntu

  • QT5 libraries (qtbase5-dev)
  • QT5 websockets library (libqt5websockets5-dev)

Fedora

  • QT5 libraries (qt5-qtbase-devel)
  • QT5 websockets library (qt5-qtwebsockets-devel)

Build instructions (Linux)

It is recommended to build in a separate directory:

mkdir build
cd build
cmake ..
make -j8

How to build on Windows

Releases since 1.1 includes pre-built client for windows, which is expected to work on any windows installation.

If you want to build it yourself, just for fun or for any othre reason, you need the following packages minGW - https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download Qt5 - https://doc.qt.io/qt-5/gettingstarted.html openSSL - https://slproweb.com/products/Win32OpenSSL.html CMake for windows

Running

from the build directory just start ./qmattermost A login form will appear and after a successful login all teams and channels should appear The credentials are saved (if using linux) in ~/.config/mattermost-native/Mattermost.conf (yes, they are not encrypted, I will find a cross-platform way to encrypt them. At least, since release 1.1 a login token is used instead of the password) and are not requested again on next start (if the login is successful)

Contribution

I am making this as a side project, mostly for fun / additional experience, so any contributions like bugfixes or any issues from the 'What is planned to be implemented' list are welcome

About

Mattermost native desktop client, using the QT framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.6%
  • Other 1.4%