RichLinkPreview icon indicating copy to clipboard operation
RichLinkPreview copied to clipboard

Unable to create RichLinkViewTelegram fromMeta

Open leshark opened this issue 4 years ago • 0 comments

richLinkViewTelegram.setLinkFromMeta(metaData) won't work because of next lines in richLinkViewTelegram.java :

textViewOriginalUrl = (TextView) findViewById(R.id.rich_link_original_url);

textViewOriginalUrl.setText(main_url);
removeUnderlines((Spannable)textViewOriginalUrl.getText());

Trying to set main_url will produce an error because it is an empty string (And the only way to set it is through setLink mehod)

leshark avatar Jan 31 '21 11:01 leshark