Commit Graph

33 Commits

Author SHA1 Message Date
Pascal Abresch 70899c8ec3 Fix 1:1 message authorship, remove second NewMessage function 2021-12-30 17:26:52 +01:00
Pascal Abresch e32893e27c Remove NewMessage() for group_chats 2021-12-30 17:14:15 +01:00
Pascal Abresch 154d754b53 Make timeline stick to the end position on new messages 2021-12-22 20:51:12 +01:00
Pascal Abresch 12cf0986d6 Talkview.cpp: rename _chat and _message
No functional change intended
2021-12-22 19:23:39 +01:00
Pascal Abresch a3db234a9f Use Document colors in timeline 2021-12-22 19:13:00 +01:00
Adrien Destugues 447f91d80d Handle detection of highlighted messages outside of TalkView 2021-12-22 18:50:46 +01:00
Adrien Destugues 408acef105 Colorize MUC items in the roster when there is activity
Fixes #68.
2021-12-22 14:39:52 +01:00
Pascal Abresch c9b436db28 Fix sending with enter
Also helps slightly with the main window resizing
2021-10-21 12:55:11 +02:00
Pascal Abresch 4a0dea78b6 Remove Quick Messages 2021-10-19 19:34:10 +02:00
Pascal Abresch 36590ca1ff Timeline: only jump to the button on own messages 2021-10-19 17:53:24 +02:00
Pascal Abresch fadcf6c651 TalkView: Add notifications for highlights 2021-10-19 17:34:59 +02:00
Pascal Abresch 248fd1deb6 Remove ICQ code 2021-10-18 19:57:40 +02:00
Pascal Abresch 21ad34618d Remove rest of logging from TalkView 2021-10-18 19:40:07 +02:00
Pascal Abresch b204d9e076 Reset message box scroller on send message 2021-10-18 19:22:37 +02:00
Pascal Abresch 9eb068dd64 TalkView: remove logging 2021-10-18 19:22:10 +02:00
Pascal Abresch 01e5390e72 Further clean up AddToTalk 2021-10-18 18:53:52 +02:00
Pascal Abresch 4fd601a672 further simplify AddToTalk and remove log from there 2021-10-18 18:44:47 +02:00
Pascal Abresch d309cdb668 Greatly simplify TalkView::AddToTalk 2021-10-18 18:37:27 +02:00
Pascal Abresch b865fdacb5 Highlight nickname messages in timeline 2021-10-18 14:56:29 +02:00
Pascal Abresch e8585b1890 Fix own messages disapearing in backlog 2021-10-18 13:08:52 +02:00
Pascal Abresch 701feee994 TalkView: formatting cleanup
No functional change intended
2021-10-18 12:16:02 +02:00
Pascal Abresch 3cbd5bc745 Make user colors work better in dark theme 2021-05-23 13:27:54 +02:00
Pascal Abresch 19839ea08e Cleanup: Delete BetterTextView 2021-05-20 20:42:50 +02:00
Pascal Abresch e1d918cc13 UI: font colors for chat view 2020-12-16 17:33:02 +01:00
Pascal Abresch f3b55a345f UI: colors for input bar 2020-12-16 17:32:46 +01:00
Adrien Destugues 2fa1069b4f Fixup session/window creation code
- Remove some useless locking, use messages instead
- Sessions can be created locally (we need to do a new Session) or from
  incoming messages (the session is created for us but we still need to
  attach a window to it). The code was not handling all cases right
- Better detection of carbons or group chat replay sessions (not sure
  what they are but now we check the type to detect them)
2020-11-22 22:22:02 +01:00
Adrien Destugues 1cf6b66ed0 Fix several crashes.
- Access to window from wrong thread when joining a bookmarked chat
- Sending messages to group chats
2020-11-20 22:35:52 +01:00
Adrien Destugues 85db625968 Move some files from jabber/ to ui/
It helps to see which parts of the code are actively maintained
2020-08-21 19:43:43 +02:00
Adrien Destugues b16ffcc1ec Show MUC participants affiliation
Use IRC-style characters for now, but probably an icon would be better
2020-08-21 17:34:10 +02:00
Adrien Destugues 18219a77c2 Simplify user list sorting
No functional changes, just make the code more readable.
2020-08-21 17:11:20 +02:00
Adrien Destugues 44fd5c8b70 Make sure roster selection and visible talk view remain in sync 2020-08-21 16:32:34 +02:00
Adrien Destugues be4e92ca48 Fix many things in TalkManager
Use separate maps for group and normal chat, saving much confusion.
Use gloox sessions and MUC rooms as keys instead of strings.
Remove linear lookups in the map (what's the point of having a map?)
Do not create a MessageSession for MUCs as it prevents getting messages
in the MUC handler

This should fix all cases where we would accidentally create multiple
windows for the same thing.
2020-08-21 15:42:59 +02:00
Adrien Destugues f9ce5c9c7f Start conversion to single window
With more than 3 windows, things become unmanageable.

Fixes #3
2020-08-21 14:08:17 +02:00