about summary refs log tree commit diff stats
path: root/src/ui
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #874 from spiridoncha/masterMichael Vetter2019-10-051-1/+9
|\ | | | | Change /clear behaviour. Closes issue #855.
| * Makes /clear behavior configurable.Spiridonov Alexander2016-11-071-0/+5
| |
| * Change /clear behaviour. Closes issue #855.Spiridonov Alexander2016-10-221-1/+4
| |
* | Bind key to switch to next active windowMichael Vetter2019-09-303-0/+41
| | | | | | | | | | | | alt-a brings one to the next window with unread messages. Regards https://github.com/profanity-im/profanity/issues/1114
* | Define keybindings to switch to up to 20 windowsMichael Vetter2019-09-301-0/+100
| | | | | | | | | | | | | | | | | | | | alt-2 brings one ot the window. irssi supports alt + 1234567890qwertyuio to easily switch to 20 windows instead of just ten. Hardcode this too. Regards https://github.com/profanity-im/profanity/issues/1114
* | Remove not needed codeMichael Vetter2019-09-291-4/+0
| | | | | | | | Was left over from refactoring a long time ago.
* | Add comment about statusbar.currentMichael Vetter2019-09-291-0/+3
| |
* | Add coloring of statusbar.current tab in viewDaniel Lublin2019-09-242-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This theme color applies to the tab title text of the statusbar tab that is currently shown. The (somewhat confusingly named) `statusbar.active` theme color now applies to all other tabs (before, it applied to all tabs). Coloring of a tab that is highlighted/has new messages is done as before using the `statusbar.new` theme color. The default color is set to `cyan`, and thus causes no visible change for users -- until modified.
* | Print history color in theme propertiesMichael Vetter2019-09-111-0/+1
| | | | | | | | Also print `main.text.history` setting when `/theme properties' is run.
* | Allow colorization of history messagesMichael Vetter2019-09-101-2/+2
| | | | | | | | | | | | | | | | History was always printed with `THEME_DEFAULT` we now use `THEME_TEXT_HISTORY` which is accesible in theme files via `main.text.history`. Fix https://github.com/profanity-im/profanity/issues/1170
* | Don't crash if source jid doesn't contain the node partDmitry Podgorny2019-08-261-1/+3
| | | | | | | | | | | | | | | | Profanity uses the node part of a JID as display name for a tab. If such a JID doesn't contain the node part, Profanity crashes on NULL pointer dereference. In the above case, use barejid which is just a domain. Fixes #1153.
* | Hardcode James email adress in info messageMichael Vetter2019-08-241-1/+1
| | | | | | | | Dont rely on PACKAGE_BUGREPORT being James' mail.
* | Add 256 colour info to /theme coloursMichael Vetter2019-08-231-0/+7
| |
* | Remove dead assignmentsMichael Vetter2019-07-221-1/+1
| |
* | Remove unused assignmentsMichael Vetter2019-07-222-2/+1
| |
* | Reduce scope of num in ui_print_system_msg_from_recipient()Michael Vetter2019-07-221-3/+1
| |
* | Fix jump depending on uninit. value in statusbarMichael Vetter2019-07-101-1/+1
| |
* | Fix handling of encrypted carbonsPaul Fariello2019-06-212-5/+5
| |
* | Rename prof_message_t into ProfMessagePaul Fariello2019-06-206-8/+8
| |
* | Set foreground color for untrusted messagesPaul Fariello2019-06-203-8/+7
| |
* | Add prof_message_t to wrap all message attributesPaul Fariello2019-06-206-55/+62
| | | | | | | | | | | | | | Probably missing copy of body to plain in carbon and privmessage. Only covers the incoming message path because goal is OMEMO decryption of untrusted message. Cover some of the log functions but not all.
* | Use flags in xmmp/message.c for encryption and trustPaul Fariello2019-06-202-9/+12
| |
* | Fix prefs_get_string mem leaks in statusbarMichael Vetter2019-06-191-6/+18
| |
* | Free last_msg_timestampMichael Vetter2019-06-191-0/+4
| | | | | | | | Fix memory leak.
* | Add myself to copyrightMichael Vetter2019-06-174-0/+5
| | | | | | | | Like discussed with James.
* | Safe last MUC message timestamp per MUCMichael Vetter2019-06-112-0/+3
| | | | | | | | | | | | After pasis review of my code he thinks it's better to safe the timestamp per MUC so we can account for some problems that could occur with timing.
* | Only print room history for new messages upon reconnectMichael Vetter2019-06-052-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If re-establish a connection don't print the room history again. In case there there happened nothing at all since we got the room history on the last connection. And in case there were no new messages during the time we have been disconnected. Instead of printing the room history again we now print 'Re-established Connection'. This adds a bit of overhead since we save the timestamp upon every MUC message. See: https://github.com/profanity-im/profanity/issues/704
* | statusbar: check if roster existsMichael Vetter2019-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | We destory the roster in ev_disconnect_cleanup(). Adding a function to test if the roster has been destroyed and testing for it in the statusbar. So now when the connection is lost 'Lost connection' is printed in all open windows. We can then reconnect with `/connect accountname`. Should fix https://github.com/profanity-im/profanity/issues/1083
* | statusbar: reduce duplicate codeMichael Vetter2019-06-041-32/+9
| | | | | | | | | | | | | | | | | | | | status_bar_new() and status_bar_active() are almost identical. Let's use one helper function to not duplicate code. I thought about renaming both functions into one and adding another parameter but didn't come up with a good name for the function that clearly describes what it does. So staying with current names + helper functions.
* | Determine chat window names beforehandMichael Vetter2019-06-041-13/+44
| | | | | | | | | | | | | | | | | | Save the name for displaying the windows in the statusbar inside the tab object. So far we calculated them repeatedly and this created issues when we lost the connection. Regards https://github.com/profanity-im/profanity/issues/1083
* | Merge pull request #1084 from jubalh/occupants-charMichael Vetter2019-05-032-0/+11
|\ \ | | | | | | Add occupants char
| * | Add occupants charMichael Vetter2019-05-022-0/+11
| | | | | | | | | | | | | | | | | | | | | `/occupants char` now sets a character that is displayed before the nick in MUCs. Similar like `/roster char` is displaying a char for the roster. Regards #690
* | | Check for new profanity version using new URLMichael Vetter2019-05-031-1/+1
|/ / | | | | | | Regards https://github.com/profanity-im/profanity/issues/1085
* | Fix formatting for privileges onMichael Vetter2019-04-241-0/+4
| | | | | | | | | | `/privileges on` lists `Moderator`, `Visitor` etc. Formatting was wrong here. Printing privilige followed by nickaname in the same line.
* | Occupantswin: handle newline correctlyMichael Vetter2019-04-241-6/+6
| |
* | Add occupants wrap optionMichael Vetter2019-04-242-2/+11
| | | | | | | | | | | | | | Wrapping for the occupants panel like already exists for the roster panel. See `/occupants wrap on`. Regards https://github.com/boothj5/profanity/issues/690
* | Put occupants update into own functionMichael Vetter2019-04-232-0/+18
| |
* | Add occupants header charMichael Vetter2019-04-232-4/+37
| | | | | | | | | | | | | | | | `/occupants header char` now sets a character that is displayed before the role (moderator, visitor..) in a room. Similar to `/roster header char` is displaying a char for the roster. Regards https://github.com/boothj5/profanity/issues/690
* | Fix indentation for time configkaffeekanne2019-04-231-2/+2
| |
* | Adjust jid for occupants indentMichael Vetter2019-04-201-3/+11
| | | | | | | | Indent the jid one more space than nick.
* | Allow setting occupants indent outside of MUCMichael Vetter2019-04-201-2/+0
| | | | | | | | And when not connected.
* | Add /occupants indent commandMichael Vetter2019-04-182-1/+15
| | | | | | | | | | | | | | | | Roster has a `/roster contact indent` option. Now we have the same for occupants. So contacts in roster and in MUC can have configurable indentation. Regards https://github.com/boothj5/profanity/issues/690
* | Set correct year in copyright displayMichael Vetter2019-04-171-1/+1
| | | | | | | | Fixes https://github.com/boothj5/profanity/issues/1069
* | Handle MUC anonymous state when auto starting OMEMOPaul Fariello2019-04-171-1/+1
| | | | | | | | | | | | | | When auto joining a MUC we don't have access to required information so we just don't start OMEMO at this time. Once we receive disco info we then try to start OMEMO.
* | Add OMEMO policyPaul Fariello2019-04-175-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | There is 3 policy: - manual: OMEMO session are only started manually - automatic: OMEMO session are only started if they have been started manually before - always: OMEMO session are always started unless they have been ended manually before Closes #1040 and fixes #1052
* | Handle message without id in MUCPaul Fariello2019-04-141-1/+1
| | | | | | | | Some clients seems to send message without id.
* | Rework MUC reflected message filteringPaul Fariello2019-04-105-4/+14
| | | | | | | | | | | | | | | | | | Reflected messages can't be filtered by nick only otherwise you might ignore messages comming from you on another devices. Consequently we maintain a list of sent messages id in mucwin. To be sure the id will be correctly reflected we use the origin-id stanza.
* | Add OMEMO in prefs commandPaul Fariello2019-04-102-0/+25
| |
* | Ensure encrypted carbon of own message are marked as encryptedPaul Fariello2019-04-101-0/+2
| |
* | Add OMEMO state in titlebar in MUCPaul Fariello2019-04-101-0/+15
| |