pull/1545/head
Audric Ackermann 4 years ago
parent 1f509e003d
commit c7d140f4d4
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -4,12 +4,12 @@ import {
getAddModeratorsMenuItem, getAddModeratorsMenuItem,
getBlockMenuItem, getBlockMenuItem,
getCopyMenuItem, getCopyMenuItem,
getMarkAllReadMenuItem,
getDeleteContactMenuItem, getDeleteContactMenuItem,
getDeleteMessagesMenuItem, getDeleteMessagesMenuItem,
getDisappearingMenuItem, getDisappearingMenuItem,
getInviteContactMenuItem, getInviteContactMenuItem,
getLeaveGroupMenuItem, getLeaveGroupMenuItem,
getMarkAllReadMenuItem,
getRemoveModeratorsMenuItem, getRemoveModeratorsMenuItem,
getUpdateGroupNameMenuItem, getUpdateGroupNameMenuItem,
} from './Menu'; } from './Menu';

@ -5,11 +5,11 @@ import {
getBlockMenuItem, getBlockMenuItem,
getClearNicknameMenuItem, getClearNicknameMenuItem,
getCopyMenuItem, getCopyMenuItem,
getMarkAllReadMenuItem,
getDeleteContactMenuItem, getDeleteContactMenuItem,
getDeleteMessagesMenuItem, getDeleteMessagesMenuItem,
getInviteContactMenuItem, getInviteContactMenuItem,
getLeaveGroupMenuItem, getLeaveGroupMenuItem,
getMarkAllReadMenuItem,
} from './Menu'; } from './Menu';
export type PropsContextConversationItem = { export type PropsContextConversationItem = {

@ -1354,7 +1354,8 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
public copyPublicKey() { public copyPublicKey() {
if (this.isPublic()) { if (this.isPublic()) {
const openGroupUrl = this.id.substr(this.id.indexOf('@') + 1); const atIndex = this.id.indexOf('@') as number;
const openGroupUrl = this.id.substr(atIndex + 1);
window.clipboard.writeText(openGroupUrl); window.clipboard.writeText(openGroupUrl);
ToastUtils.pushCopiedToClipBoard(); ToastUtils.pushCopiedToClipBoard();

Loading…
Cancel
Save