Commit Graph

111 Commits

Author SHA1 Message Date
Pascal Abresch c5d81e0923 CustomStatusWindow: Cleanup
No functional change intended
2021-12-31 13:18:27 +01:00
Pascal Abresch fd48860131 Fix icon sizes for online icons 2021-12-31 12:46:38 +01:00
Pascal Abresch 97d639c4bf RosterItem: Use selected list background color 2021-12-31 12:25:07 +01:00
Pascal Abresch 8e5972cec8 Remove filtering of initial topic
This was broken, but it may have failed non-deterministically
Just remove it to be sure.
2021-12-30 18:38:58 +01:00
Pascal Abresch e32893e27c Remove NewMessage() for group_chats 2021-12-30 17:14:15 +01:00
Adrien Destugues 6bf54007a4 Update server lists for new account creation
Fixes #55.
2021-12-23 14:36:44 +01:00
Pascal Abresch c4cbaf43f9 Enable presence requests 2021-12-22 23:16:57 +01:00
Adrien Destugues 2706ef27d5 Fix build on 32bit systems 2021-12-22 19:20:45 +01:00
Pascal Abresch 3609bbea28 Remove popup show chatlog menu 2021-12-22 19:11:27 +01:00
Pascal Abresch 61907c08dd Sort rosterview (determenistic channel order 2021-12-22 19:11:27 +01:00
Pascal Abresch f0c6faa193 More consistent using of the Buddy term 2021-12-22 19:11:27 +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 ce001ccb86 jabber/BuddyWindow Cleanup and move to ui/AddBuddyWindow
improves code style, switches to BOptionPopUp
also removes Alert popups and replaces with invalid marker
2021-10-26 23:50:08 +02:00
Pascal Abresch 8299774cd4 Remove dead deskbar icon code 2021-10-19 19:51:15 +02:00
Pascal Abresch 4a0dea78b6 Remove Quick Messages 2021-10-19 19:34:10 +02:00
Pascal Abresch 248fd1deb6 Remove ICQ code 2021-10-18 19:57:40 +02:00
Pascal Abresch d309cdb668 Greatly simplify TalkView::AddToTalk 2021-10-18 18:37:27 +02:00
Pascal Abresch dc48e055f3 Cleanup: Remove icq icon 2021-09-12 12:39:19 +02:00
Pascal Abresch 465f4a9219 Bookmarkitem: fix HVIF icon 2021-05-22 21:26:17 +02:00
Adrien Destugues 3070376fc9 Replace icons with vector versions
These look nicer, are colorblind-friendly, and will be easier to scale
up.
2021-05-22 14:12:13 +02:00
Pascal Abresch 7c7f1c9f8f Cleanup: CustomStatusWindow use LayoutBuilder 2021-05-21 23:01:33 +02:00
Pascal Abresch f5cd12763f StatusView: fix font size for scaling and color 2021-05-21 21:20:33 +02:00
Adrien Destugues 757fe9ab3d Cleanup "add contact" window
- Use BLayoutBuilder
- Add appropriate margins to the window
- Re-introduce the protocol selection (for IRC)
2021-05-21 11:41:34 +02:00
Pascal Abresch 85c95aae78 UI: make BuddyWindow use layout kit 2021-05-20 20:52:32 +02:00
Pascal Abresch 19839ea08e Cleanup: Delete BetterTextView 2021-05-20 20:42:50 +02:00
Adrien Destugues 8b7fb5ca04 Fix crash when deleting bookmark 2021-02-20 18:02:39 +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 983900e69b Add user avatars (XEP-0084)
- Add PubSub logic so we can request and handle the avatars
- Add base64 decoding + image decoding
- Rework roster item size and drawing to fit the avatar in
- Add a cache dir to store the avatars in
2020-11-22 18:16:46 +01:00
Adrien Destugues 41b154c07b Implement vcard support.
Populate the "get buddy info" window with vcard data.
2020-11-21 22:05:56 +01:00
Adrien Destugues 6d263afc5b Cleanup and layoutify Buddy Info window. 2020-11-21 14:32:27 +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 115d2ad2cf Actually check TLS certificates. 2020-11-15 16:17:56 +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 8f57de43d4 Add a split view for roster and fix size limits 2020-08-21 16:53:59 +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
Adrien Destugues edc1764b84 Remove some dead code. 2020-08-19 15:18:06 +02:00
Adrien Destugues f183aff5c7 Remove some useless fields from main window 2020-08-17 16:32:26 +02:00
Adrien Destugues 26be1f9cc8 Add message carbons.
Fixes #56
2020-08-13 21:42:12 +02:00
Adrien Destugues 3340944e06 More switching to MessageSession 2020-08-13 15:09:16 +02:00
Adrien Destugues 03775dcd95 UserID: Remove unused method 2020-08-13 12:10:21 +02:00
Adrien Destugues 924ac61f23 Let the server generate a resource
This is the recommended best practice, and allows starting multiple
Renga instances for the same account. With an hardcoded resource, they
would conflict with each other.
2020-08-13 12:08:44 +02:00
Adrien Destugues 32d791ec66 Make TalkManager a MessageSessionHandler
Fixes #58
2020-08-12 21:59:16 +02:00
Adrien Destugues b1ba1eda8b TalkWindow: make it a MessageHandler
So it can receive messages from gloox directly.
2020-08-12 21:56:54 +02:00
Adrien Destugues 0c9908c7bc Some cleanup and removal of UserID
Fixes some NULL dereferences when talking to people not in roster.
2020-08-12 14:37:19 +02:00
Adrien Destugues 997da513ac XEP-0115 is supported (by gloox internally)
This means we're core/core client compliant, yay!
2020-03-29 10:55:55 +02:00
Adrien Destugues 400c21d652 Remove "newlines allowed" from talk window
No need to allow either behavior there, use the sane defaults.

Fixes #48
2020-03-29 10:19:35 +02:00