Skip to content

Conversation

@vanitasvitae
Copy link
Member

Rebased #107 on current master.

Copy link
Member Author

@vanitasvitae vanitasvitae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some things that I do not fully understand about the code so far.

@JackBekket
Copy link

Any updates?

@vanitasvitae
Copy link
Member Author

I haven't had time to further work on this yet. You are truly welcome to contribute though if you have the resources ;)

Co-authored-by: Paul Schaub <[email protected]>
Copy link
Member

@Flowdalic Flowdalic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let us try to get this over the finish line. I think this mostly needs work regarding the AvatarStore interface.

Also please squash and rebase on the current master. Feel free to add a Co-authored-by git pseudo header.

availabilityMap.put(new Tuple<>(jid, itemId), Boolean.TRUE);
}

private static class Tuple<A, B> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class should be deleted and o.j.smack.util.Pair should be used instead.

* whether the client already has a local copy of a published avatar or if the user needs to be informed about the
* update in order to download the image.
*/
public interface AvatarMetadataStore {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused by this "store", which does not actually seem to store avatars, just their availability.

Why not make it a real store-interface, e.g.

interface AvatarMetadataStore {
   Avatar getAvatar(EntityBareJid jid, String itemId);
   putAvatar(EntityBareJid jid, String itemId, Avatar avatar);

where Avatar is a meta class that encapsulates the MIME type and the avatar bytes.

@Flowdalic Flowdalic added Needs rebasing All or some commits need to be squashed Needs squashing and removed Needs feedback labels Feb 17, 2021
@Neustradamus
Copy link

@vanitasvitae: Have you progressed on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs rebasing All or some commits need to be squashed Needs squashing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants