Never show our own users in typing bar
This commit is contained in:
parent
7a959115ef
commit
cf54c0a29f
1
TODO.md
1
TODO.md
|
@ -18,7 +18,6 @@
|
|||
- Horrible performance for big rooms
|
||||
|
||||
- UI
|
||||
- Don't show typing bar for any of our users
|
||||
- Show error box if uploading avatar fails
|
||||
- EditAccount page:
|
||||
- Device settings
|
||||
|
|
|
@ -6,11 +6,16 @@
|
|||
Qt.include("../utils.js")
|
||||
|
||||
function typingTextFor(members, ourUserId) {
|
||||
let ourUsers = []
|
||||
let profiles = []
|
||||
let names = []
|
||||
|
||||
for (let i = 0; i < accounts.count; i++) {
|
||||
ourUsers.push(accounts.get(i).userId)
|
||||
}
|
||||
|
||||
for (let member of members) {
|
||||
if (member != ourUserId) { profiles.push(users.find(member)) }
|
||||
if (! ourUsers.includes(member)) { profiles.push(users.find(member)) }
|
||||
}
|
||||
|
||||
profiles.sort((left, right) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user