This allows for showing if user is online or not in the conversation info list without needing another API call
Signed-off-by: Mario Danic <mario@lovelyhq.com>
The absolute position of the contacts menu is relative to the author
row, so it has to be pushed down to not overlap the author name and
avatar.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The model holds the data for the message author, but it is not
applicable when setting the avatar for mentions, as in that case each
mention has its own user data.
Signed-off-by: Joas Schilling <coding@schilljs.com>
When its first parameter is undefined the "avatar()" function gets the
user id from the "data-user" attribute, so now the user id must be given
explicitly.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Until now only the e-mail shares had support for sending the password by
Talk. In Nextcloud 15 that feature was added to link shares too, so the
room name and the notification sent for "share:password" rooms has to be
adjusted accordingly.
The display name of "share:password" rooms is generated from the raw
name of the room (the e-mail for mail shares and the file name for link
shares) each time the room information is sent by the server, so the
display name was generalized to accomodate both types of raw names.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
The name of rooms for requesting a password by Talk is generated by the
server each time a room or the list of rooms is fetched, and it should
not be editable by the user. Moreover, the "name" attribute is the raw
name from which the "displayName" attribute is generated, and thus the
later is the one that should be shown for "share:password" rooms.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This prepares the code for future changes in which the password could be
requested for other types of shares.
Note that the notification of a password request is just a regular call
notification; thus, the share is not provided in the notification
parameters and it has to be got from the ID of the object associated to
the room (as in "share:password" rooms the object ID is the share
token).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Unlike in the regular Talk app when Talk is embedded the signaling
settings are not initially included in the HTML, so they need to be
explicitly loaded before starting the app.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When Talk is embedded in the public share authentication page the app is
explicitly initialized in "publicshareauth.js" (as some special setup
for the settings will be needed in that case); "init.js" should be used
only for the regular Talk app.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "templates.js" files are compiled by Handlebars from the source
templates, so there is no point in checking for problems like defined
but not used variables.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>