Never show our own users in typing bar

This commit is contained in:
miruka 2019-07-20 02:32:37 -04:00
parent 7a959115ef
commit cf54c0a29f
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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) => {