Mick Sayson
3fd4ce5952
refactor(core): Remove length parameter from splitMessages
...
* From the archeology I managed, MAX_GROUP_MESSAGE_LEN was a workaround
for an old toxcore bug. Testing removal of this parameter and replacing it
with tox_max_message_length() seems to work fine.
2019-06-21 11:01:10 -07:00
Mick Sayson
22a4c38bfd
refactor(messages): Create class to manage sending/receiving friend messages from core
2019-06-21 11:01:10 -07:00
Diadlo
0b9b538601
refactor: Inject DialogsManager in chatrooms
2019-06-19 12:34:06 +03:00
Diadlo
ac36ed8180
refactor: Create interfaces for ContentDialog and ContenDialogManager
2019-06-19 12:34:03 +03:00
jenli669
a1a3749700
fix(group): fix logic oversight and code style
2019-06-15 00:34:02 +02:00
jenli669
c772db3baa
fix(group): always retain own name when updating group peer list
...
Adds special case for updating our own PK in regeneratePeerList
Format according to format-code.sh
Fixes #5686
2019-06-14 23:46:41 +02:00
Mick Sayson
e5016337bb
refactor(offlinemsg): Decouple OfflineMsgEngine from other components
2019-05-26 15:33:51 -07:00
Anthony Bilinski
b7bd7c6215
refactor(group): move peer tracking logic to Group from GroupChatForm
...
* increase signal granularity
* reduce state in GroupChatForm
* remove differentiation of "joined" and "online" peers, it doesn't exist in toxcore and can't be tracked reliably in qTox
* add system message when peer name changes, even if due to alias
* add system message when self name changes, for clarity
2019-05-15 12:00:44 -07:00
Anthony Bilinski
ef554496fa
refactor(group): rename class members
2019-05-15 11:54:10 -07:00
Anthony Bilinski
04f1ccda35
fix(group): treat empty peer names like empty friend names, by showing pk
...
Fix #5660
2019-05-15 11:52:27 -07:00
Anthony Bilinski
08839b7052
refactor(group): remove redundant updatePeer API
2019-05-15 00:13:55 -07:00
Anthony Bilinski
6801298e96
fix(groups): don't add friend alias to groups they aren't in
...
Fix #5657
2019-05-13 23:58:24 -07:00
Anthony Bilinski
881aa3083a
fix(status): use enum as UI property instead of untranslated string
...
Translation of getStatusTitle introduced in 15d72a9610
, breaking asset path from string.
2019-04-24 10:35:17 -07:00
Anthony Bilinski
e1876a2691
refactor(status): remove Status::getFromString and Status::getIconPixmap
...
getFromString is unused and incompatible with translated UI names, getIconPixmap is unused and completely generic.
2019-04-24 10:35:16 -07:00
Anthony Bilinski
dd007877a9
refactor(status): move Status out of Widget
2019-04-24 10:35:15 -07:00
Anthony Bilinski
f7603c294b
refactor(id): use toxPk and groupId instead of core numbers
...
Allows creating classes for blocked friends which have toxPks but no
core number.
2019-04-16 00:44:16 -07:00
Anthony Bilinski
ec500b6673
refactor(status): add Blocked status, deduplicate status parsing
...
Blocked status will represent friends who are removed from Toxcore, but who still exist in UI and can be readded to Toxcore at a future time using their public key. Blocked friends are similar to offline friends, but have a different status icon and will be seperated in the friends list.
2019-04-14 13:35:46 -07:00
Anthony Bilinski
97d05f9d67
refactor(id): make ContactId interface, implement GroupId
...
Precursor for group history, friend blocking
2019-04-13 12:58:25 -07:00
Anthony Bilinski
216766061c
refactor(avatar): split up setAvatar function
...
Don't convert to QPixMap before saving. Allow for use of file without re-encoding once metadata stripping is available for PNGs.
2019-04-08 23:45:47 -07:00
Anthony Bilinski
13afbf7ec6
fix(groups): avoid having to lookup peer pk
...
Caused race where peer plays audio, then is removed from group, then we
process audio played signal and lookup their peerId in core where it
doesn't exist. Now Group will effectively contain the peer until the
peer list changed slot is processed.
Partial fix for #5511
2019-01-29 08:30:39 -08:00
Anthony Bilinski
8422c09f6a
fix(groups): don't invalidate all audio sources when peer list changes
...
Fix #5508
2019-01-27 23:13:11 -08:00
Monsterovich
ee500703aa
fix(core): this should resolve message handling in persistent groups
2019-01-05 15:50:06 +02:00
Monsterovich
01f79b0d08
fix(core): update group peerLists on local changes
2018-12-26 19:15:37 +02:00
Monsterovich
9b261fd870
fix(core): this fixes displaying nickname refreshes in groups
2018-12-26 19:15:00 +02:00
sudden6
f188409b8c
fix(autocomplete): don't auto-complete own nick
...
In the process also remove the dependency of the auto completer on Core.
2018-11-22 17:52:54 +01:00
sudden6
562ef28ab0
refactor(friend): remove Core dependency
2018-11-15 10:33:37 +01:00
Jakie.OYMJ
e6d40be72e
fix: add remove history prompt, clear log area after remove
2018-10-05 10:24:39 +08:00
Anthony Bilinski
0c757356d3
fix(avatar): set friend to identicon on empty avatar receipt
...
*All friend avatar changes and removals go through Profile, so that Profile can manage identicons
*Split the concept of "changed" and "removed" into "changed", "set", and "removed"
Fixes #4724
2018-09-17 02:30:45 -07:00
Anthony Bilinski
11131fa083
fix(ui): Display most recent group member's name instead of <Empty>
...
Fix #5294
2018-08-22 23:00:20 -07:00
Diadlo
66fe7f2852
refactor(groupwidget): Create GroupChatroom
...
And move some logic in 'FriendChatroom' from 'onContextMenuCalled'
2018-07-18 01:06:47 +03:00
Diadlo
059d0120be
refactor: Add FriendChatroom (model to FriendWidget)
2018-07-12 15:32:35 +03:00
sudden6
24e7c4efd4
refactor(core): format code
2018-07-05 17:10:26 +02:00
sudden6
e5acc6726f
refactor(core): reimplement avatar transfers
...
In the process of this I used some ugly hacks, to finish this in time,
they should be changed as soon as possible.
2018-07-05 17:05:41 +02:00
ezavod
847f155b7b
refactor(chatform): Use QStringList instead of QVector<QString>
...
This replaces QVector<QString> with QStringList consistently across all files.
2018-05-31 21:32:58 +02:00
sudden6
4acf884fb9
refactor: use ToxPk as identifier
...
fixes #5116 and #5117
2018-05-11 20:35:24 +02:00
sudden6
498c04ba50
refactor(group): store peer list in a more intelligent way
2018-04-30 01:19:34 +02:00
sudden6
0d74134dc1
refactor(group): use displayedNameChanged signal
2018-04-30 01:19:34 +02:00
Anthony Bilinski
5dc4e6de81
chore(legal): update copyright date to 2018 for all source files
2018-04-25 17:33:38 -07:00
Anthony Bilinski
c2410e0a65
fix(name): Clear alias on name change so that name changes are visible
...
Temporary work around for #5013
2018-03-18 19:22:24 -07:00
Diadlo
0a590336b1
fix(group): Show correct count of user on first creation
...
Fix #4503
2018-03-05 22:20:39 +03:00
sudden6
1f8c9a2e2f
refactor: update displayed user name from the friend model
2018-02-28 17:51:00 +01:00
sudden6
a910d57824
refactor(friend): add an additional signal to Friend
2018-02-26 20:53:53 +01:00
Diadlo
0d2926e196
refactor: Remove ChatForm from Group
2018-02-08 09:01:23 +03:00
Diadlo
42a3a27a58
refactor: Remove chatForm from Friend
2018-02-06 10:46:09 +03:00
Diadlo
b26255703d
refactor: Move using loadHistory out of Friend
2018-02-06 10:46:09 +03:00
sudden6
a49e34589f
fix(UI): prevent deadlocks on logout and profile delete
...
fixes #4896
2018-01-11 12:10:30 +01:00
Diadlo
0efa42d423
refactor: Update AboutFriend with new interface
2017-12-24 13:23:31 +03:00
Diadlo
b53569c362
refactor: Add using IFriendSettings in AboutFriend model
2017-12-24 13:23:31 +03:00
Diadlo
e4537c04bc
refactor: Add IFriendSettings
2017-12-24 13:23:31 +03:00
Diadlo
87baf0e690
refactor: Improve interface
2017-12-24 13:10:07 +03:00