deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
658 stars 84 forks source link

webxdc names and document names #3316

Closed r10s closed 2 years ago

r10s commented 2 years ago

the name of webxdc is shown in the title bar, together with the chat name; it makes sense to truncate it to some reasonable lenght, sth. as 20 characters.

same for the document name introduced at https://github.com/deltachat/deltachat-core-rust/pull/3317

r10s commented 2 years ago

thinking this over and some more background from recent discussion:

eg. the if the windpow title of an editor is usually WebxdcName - GroupName and an Webxdc sets its name toEditor - Saved Messages . . . . . . . ., that may trick the user: the real group name won't be shown in many cases as being too far right. instead the user may think one is writing to "Saved Messages".

however, it seems to be a weak attach:

(inb: nstead of truncating, one could replace character sequences in the name that are used as the separator)

however, all in all, i'd say, it still make sense to ensure all information are shown, however, i'd leave that more to the UIs. eg. the UIs can decide much better when to truncate - a too much truncated document title may have issues on its own (imaging one mixes up "Letter to my friend" with "Letter to my enemy" as the title just shows "Letter to my ... - Editor" :)

r10s commented 2 years ago

nb: desktop targets this by https://github.com/deltachat/deltachat-desktop/pull/2758

r10s commented 2 years ago

k, let's close this, there is no actionable item in core for now and for the different UIs, we'll see if that is needed in which detail. it is less an issue on android/ios and desktop already does things fine, so, maybe everything's just fine :)