Add config print full display name of the invited person.
This commit is contained in:
@@ -287,7 +287,7 @@ public class InvitationManager {
|
||||
}
|
||||
|
||||
String token = RandomStringUtils.randomAlphanumeric(64);
|
||||
String displayName = invitation.getAddress().substring(0, 3) + "...";
|
||||
String displayName = getInvitedDisplayName(invitation.getAddress());
|
||||
KeyIdentifier pKeyId = keyMgr.getServerSigningKey().getId();
|
||||
KeyIdentifier eKeyId = keyMgr.generateKey(KeyType.Ephemeral);
|
||||
|
||||
@@ -316,6 +316,14 @@ public class InvitationManager {
|
||||
return reply;
|
||||
}
|
||||
|
||||
private String getInvitedDisplayName(String origin) {
|
||||
if (cfg.isFullDisplayName()) {
|
||||
return origin;
|
||||
} else {
|
||||
return origin.substring(0, 3) + "...";
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasInvite(ThreePid tpid) {
|
||||
for (IThreePidInviteReply reply : invitations.values()) {
|
||||
if (!StringUtils.equals(tpid.getMedium(), reply.getInvite().getMedium())) {
|
||||
|
||||
Reference in New Issue
Block a user