Browse Source

Some more CSS fixes

pull/978/head
Timothée Jaussoin 5 years ago
parent
commit
d95165a69c
  1. 2
      app/widgets/Chat/Chat.php
  2. 5
      app/widgets/Chat/chat.css
  3. 21
      app/widgets/Chat/chat_omemo.js
  4. 36541
      app/widgets/Chat/libsignal_protocol.js
  5. 3
      public/theme/css/listn.css

2
app/widgets/Chat/Chat.php

@ -373,7 +373,7 @@ class Chat extends \Movim\Widget\Base
* @param string $message
* @return void
*/
public function ajaxHttpDaemonSendMessage($to, $message = false, $muc = false,
public function ajaxHttpDaemonSendMessage(string $to, $message = false, $muc = false,
$resource = false, $replace = false, $file = false, $replyToMid = false)
{
$message = trim($message);

5
app/widgets/Chat/chat.css

@ -333,11 +333,6 @@ main:not(.enabled) #chat_widget {
display: block;
}
#chat_widget div.file:not(.bubble) span.size {
display: inline-block;
margin-right: 5rem;
}
#chat_widget div.file:not(.bubble) span.size:before {
content: '–';
margin: 0 0.75rem;

21
app/widgets/Chat/chat_omemo.js

@ -0,0 +1,21 @@
var KeyHelper = libsignal.KeyHelper;
var registrationId = KeyHelper.generateRegistrationId();
// Store registrationId somewhere durable and safe.
console.log(registrationId);
KeyHelper.generateIdentityKeyPair().then(function(identityKeyPair) {
console.log(identityKeyPair);
// keyPair -> { pubKey: ArrayBuffer, privKey: ArrayBuffer }
// Store identityKeyPair somewhere durable and safe.
});
KeyHelper.generatePreKey(1).then(function(preKey) {
console.log('preKey');
console.log(preKey);
store.storePreKey(preKey.keyId, preKey.keyPair);
});
KeyHelper.generateSignedPreKey(identityKeyPair, keyId).then(function(signedPreKey) {
store.storeSignedPreKey(signedPreKey.keyId, signedPreKey.keyPair);
});

36541
app/widgets/Chat/libsignal_protocol.js
File diff suppressed because it is too large
View File

3
public/theme/css/listn.css

@ -420,7 +420,6 @@ ul li div.bubble span.info {
ul li div.bubble span.info:empty:before {
content: "\a0";
display: block;
}
ul li div.bubble > div:last-child span.info {
@ -429,7 +428,7 @@ ul li div.bubble > div:last-child span.info {
ul li div.bubble:not(.file) > div:last-child span.info {
height: 3rem;
height: 2.25rem;
}
ul li.oppose div.bubble.file > div:last-child span.info {

Loading…
Cancel
Save