As discussed previously here and here, I've decided to start work on a private messaging extension.
Although a few people voiced some interest in being tightly involved in such an endeavour, I firmly believe in an iterative process. The same has applied to the flagrow/upload, where features and feedback have moved gradually into the development processes.
To remain transparent on what decisions are made and what the current progress is, I decided to start this thread for you to remain informed and voice your opinions. According to the recent guidelines for extensions I am not allowed to post this under extensions in WIP state, so hence you'll find it under the dev tag.
Yesterday I once again picked up where I left off some time ago. I remember that I had caused an internal server error previously, caused by an api endpoint. Sadly this caused no errors in the flarum.log file or the valet Log directory. After a few hours of unforgiving detective work, revisiting all code, I was able to resolve the complication caused by faulty container bindings and class instantiation.
I could then inspect what I was planning to implement previously:
- Create an icon next to the flags icon that indicates the number of open private messages.
- On click show the last private discussions and whether they have unread messages.
- On clicking any of these items move to a dedicated page, much like a discussion page that shows the private discussion.
Initially I was about to work only on 1 on 1 private discussions, but my database design seemed flawed anyway, so this morning I started refactoring the code and database mutations (called migrations) to facilitate private discussions between two or more users.
These are my plans for an initial version.
Feel free to provide an additional incentive. Please understand, although being a forum moderator, I am not a core developer (nor the owner) of Flarum and all Flagrow extensions I contribute to the community I do so in my free time next to a full time job and a family.